Thread: onFocus to close a window
Results 1 to 2 of 2
Related
-
How do I get onUnload to close a window Forum: Javascript Forum
Replies: 0 -
close window Forum: Javascript Forum
Replies: 0 -
close window Forum: Javascript Forum
Replies: 3 -
onblur=window.close() trubles Forum: Javascript Forum
Replies: 0 -
ONBLUR to close a window Forum: Javascript Forum
Replies: 10
-
01-30-2004, 07:19 AM #1
onFocus to close a window
I have used the suggested onFocus script within my parent window to close a child window that contains an embedded QT movie.
What happens is rather than the child closing, the parent switches to an unknown URL.
Here is what I have in the BODY of the parent:
<BODY BGCOLOR=#ffffff leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onfocus="if (window.win) {window.win.close()}">
And here is the image link to open the child:
<td><a href="java_script_:void(0);" onClick="win=window.open('movies_html/vid2-1_LG.htm','video','resizable=yes,width=400,height=445')"><img src="images/structure_images/filmicon.jpg" alt="Link to video." width="18" height="20" vspace="3" border="0" align="absmiddle"></a></td>
If someone would help me with this it would be most appreciated.
Thanks,
medart
-
01-30-2004, 04:14 PM #2
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum