Here is a sample how to access elements in an iframe from the parent document and how to access parent elements from the iframe.
This is how I get the value of the textbox in the iframe from its parent:
document.getElementById('myFrame').contentDocument.getElementById('tbText').value
And this is how I get the value of the textbox in the parent document from the iframe:
parent.top.document.getElementById('tbText').value
Thursday, January 10, 2008
Subscribe to:
Comments (Atom)
