On 18 Apr, 01:30, Mel <MelHer...@gmail.comwrote:
I need to access an element of my top window from inside an IFrame
within that window.
I tried:
parent.MYFRAME.document.getElementById("LHS");
and i get a "Access Denied"
You should be using just:
parent.document.getElementById("LHS")
That is, the MYFRAME bit shouldn't be there.
Also, the document loaded within the iframe needs to be on the same
server as the parent document. Javascript can't access documents
across different domains for security reasons.
wp.