| 
       
          
                    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: 
         
         - Jan 18, 2007 - Will this dhtml context menu rollout from within an iframe over a regular frame
 - Sep 08, 2007 - When I  export the file sometimes the links doesn't work in css tabbed menu
 - Nov 11, 2007 - I need to create a context menu popup triggered from a flash movie button.
 - Jul 14, 2009 - I have an image map of a graphic and I  need to call my javascript pop out menu from an OnMouseOver in the image map..
 - Nov 26, 2009 - I need to create a popup menu in javascript triggered from a flash movie button.
 - 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 02, 2010 - I get a "Error! Skin Load!" popup when my onmouseover popup window loads..
 - 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 26, 2010 - Is it possible to use a close popup window to display all the sponsor details..
 - March 19, 2010 - The problem I have is that even when you close the html popup window (assuming the video is not finished) the sound keeps playing.
           
               
   |