Is there any way I can close the dhtml 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 dhtml popup from
the page loaded within the iframe?
A:
You can close the 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 06, 2006 - Can't see my javascript vertical tree menu in FireFox.
- Oct 06, 2006 - How can I use right-to-left languages in javascript popupmenu?
- Nov 05, 2006 - The font color doesn't change when I roll over the dhtml side menu
- Nov 28, 2006 - Do I need any additional loaded software using the javascript select menu?
- Dec 15, 2006 - I can't seem to have a "contact us" menu item to work in the html navigation menu.
- Jan 01, 2007 - Does your vertical slide menu compatible with Namo WebEditor 2007?
- Jan 18, 2007 - Will this dhtml context menu rollout from within an iframe over a regular frame
- Jan 19, 2007 - The floating buttons turn white or unload and reload when hovered over.
- Feb 03, 2007 - The dhtml menu example looks different in IE and Firefox. In IE it is much
- Feb 21, 2007 - The down arrows of my vertical menu css only show on the main page, how to fix it?
- March 07, 2007 - The roll over menu won't align itself correctly in Firefox.
|