M
Micky Pearce
Hi
I have a page containing a hidden <div> called 'controls' plus an <iframe>
containing a second page. I need to be able to set the visibility of the
'controls' div when the page in the iframe loads. Is this possible?
Using this code I can change the visibility from a link in the parent
window:
onClick="document.getElementById('controls').style.visibility='visible'"
but if I try something like
parent.getElementById('controls').style.visibility='visible'
It just replaces the parent with the page from the iframe.
Cheers
Mickey
I have a page containing a hidden <div> called 'controls' plus an <iframe>
containing a second page. I need to be able to set the visibility of the
'controls' div when the page in the iframe loads. Is this possible?
Using this code I can change the visibility from a link in the parent
window:
onClick="document.getElementById('controls').style.visibility='visible'"
but if I try something like
parent.getElementById('controls').style.visibility='visible'
It just replaces the parent with the page from the iframe.
Cheers
Mickey