Article From:https://segmentfault.com/q/1010000011710779
Question:

1.Parent page A.html middle iframe calls sub page a.html

<iframe src="a.html" id="myFrame"></iframe>

2.There is global variable idno in a.html.
3.How do I access the idno variable in A.html? Can I use JQ?

Answer 0:

Try this.document.getElementById('myFrame').contentWindow.idno

Answer 1:

postMessage: https://developer.mozilla.org…

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *