I want to be able to hide an iframe but I need to be able to activate
this from the iframe itself.
This works most of the time but I it runs into issue when the domains
don't exactly match I get the following error in Firefox:
Error: uncaught exception: Permission denied to get propert
HTMLIFrameElement.style
I have tried:
document.defaultView.frameElement.style.display = 'none';
and
parent.document.getElementById('theIframeElement') .style.display='none';
Is there a work around?