dch31969
12-05-2007, 01:49 PM
If I have a script that runs within an IFRAME that will change an element on the page which contains the IFRAME, what syntax would I use to reference the element on the main page?
Obviously document.getElementById("headerDiv").innerHTML = "Hello World" would change the DIV if the script is executed via the main document, however what if the script is executed via a document contained within an IFRAME?
Obviously document.getElementById("headerDiv").innerHTML = "Hello World" would change the DIV if the script is executed via the main document, however what if the script is executed via a document contained within an IFRAME?