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:
- Jan 18, 2007 - Will this dhtml context menu rollout from within an iframe over a regular frame
- March 12, 2007 - I have an errors on the dhtml hover menu in HTML application with 4 iframes.
- June 14, 2007 - Is it possible that open items are closed when another dhtml sub menu is chosen
- Nov 20, 2007 - How I can make the current dhtml popup menu item to be highlighted?
- Dec 08, 2007 - Will the dhtml css menu stay in view when the user scrolls down?
- May 07, 2009 - If I select one Subitem in the other dhtml navigation menu (opened) Subitem is closed. Is there a way to get this facility for Items too?
- May 19, 2009 - I can add dhtml popup menu items and submenu items, but each new sub menu item is placed at the bottom of that list.
- Nov 26, 2009 - I open an Iframe inside the javascript menu design item, and it works fine, but is there a way to close it?
- Jan 14, 2010 - I have a website where the customer asks a onclick popup window so they can listen in to a radio braodcast. i.e. popup on demand.
- February 03, 2010 - What I would like is a link inside the popup window that closes the mouseover popup window.
- February 20, 2010 - We would like to add the date picker and dhtml modal popup included also. Please let me know of the process..
|