Get Input value from Iframe in another domain

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Get Input value from Iframe in another domain



I saw all the questions about this topic, nothing help me.
my question:



It is possible to get value of input inside iframe from anoter site?
for example: the IFRAME located in the domain: myframe.com/iframe.html , and the page I want to get in him the value of the input inside iframe is: domainofme.com/page.html



I have try all of this examples, without success:


document.getElementById('img10').value = document.getElementById('iframe').contentWindow.document.getElementById('img10');
document.getElementById('img10').value = document.getElementById('iframe').contentWindow.document.getElementById('img10');

document.getElementById("img10").value = $("#iframe").contents().find("#img10").val();

var iContentBody = $("iframe").contents().find("body");
$("#img10").val(iContentBody.find("#img10").attr('value'));



Anyone can help me?



Its not duplicate because all of the examples not working / too old





Possible duplicate of Get Cross-Domain iFrame content
– Jorge Fuentes González
Aug 10 at 13:52





The answer is no. Read the question @JorgeFuentesGonzález linked. Voting to close as duplicate.
– nurdyguy
Aug 10 at 13:54





@Din Is exactly the same question. "How to access contents of another iframe in another domain (crossdomain)". Not working examples means that the answers of the question I posted are being applied (same origin security policy). The security policies are there for a reason. If you check your developer console (F12) you will see that is not possible.
– Jorge Fuentes González
Aug 10 at 14:14






So the answer to your question It is possible to get value of input inside iframe from anoter site? is no.
– Jorge Fuentes González
Aug 10 at 14:16






@JorgeFuentesGonzález If he actually took the time to read the questions you linked he'd see that allowing such behavior would be a serious security breach. A simple google search shows just how many times this exact questions has been asked.
– nurdyguy
Aug 10 at 14:19









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard