Is there any way I can close the onmouseover popup from the page loaded within the iframe?
Return to Recent Questions
Q:
I have another question regarding the popup window. I need to use an iframe
within the popup window. Is there any way I can close the onmouseover popup from
the page loaded within the iframe? Something like
"parent.document.getElementById('windowid').hide();". Any help would be
appreciated.
A:
You can close the onmouseover popup using the following function:
document.getElementById('win').hide();
Unfortunately it won't work if you use iframe as window content.
You open another page in the popup (in Iframe) so you cannot access
document.getElementById('win').hide();
element which is situated on the first page.
When you use text or object_id as window content the content of the popup will be situated
on the same page so you can access document.getElementById('win') element and hide it.
There is a workaround.
Use text as content type and add the following code inside popup:
<a onclick="document.getElementById('win').hide();">...</a> <iframe></iframe>
Your link will work in that case.
Return to Recent Questions
Related:
- Sep 11, 2006 - How can I hide my dropdown menu on print?
- Oct 07, 2006 - Is for the html Tuner a languages pack german available?
- Nov 07, 2006 - The menu appears perfectly in the css menu maker preview screen, but not on the page.
- Nov 29, 2006 - Why the background images disappear for a while after hovering over html menubar?
- Dec 16, 2006 - Is there a way to keep global cool navigation image highlighted?
- Jan 02, 2007 - How exactly does such javascript parameters as dmAJAXCount work?
- Jan 18, 2007 - Will this dhtml context menu rollout from within an iframe over a regular frame
- Jan 20, 2007 - vertical drop down menus don't work with Internet Explorer.
- Feb 05, 2007 - Can we specify our own onclick event handler for the javascript sliding menus item?
- Feb 22, 2007 - I like popup-mode html menu sample but I could make it to work on my computer.
- March 08, 2007 - I'm wondering if you can use the Link Item of the website menus to have ASP code
|