Article From:

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:


Leave a Reply

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