52 users online (1 members and 51 guests)  


  Results 1 to 2 of 2

Related

  1. How do I get onUnload to close a window    Forum: Javascript Forum
    Replies: 0
  2. close window    Forum: Javascript Forum
    Replies: 0
  3. close window    Forum: Javascript Forum
    Replies: 3
  4. onblur=window.close() trubles    Forum: Javascript Forum
    Replies: 0
  5. ONBLUR to close a window    Forum: Javascript Forum
    Replies: 10
  1. #1
    medart's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2004
    Posts
    2

    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

  2. #2
    medart's Avatar
    New User

    Status
    Offline
    Join Date
    Jan 2004
    Posts
    2

    problem solved

    problem solved
    thanks anyway



Tags for this Thread