37 users online (0 members and 37 guests)  


  Results 1 to 1 of 1

Related

  1. close window    Forum: Javascript Forum
    Replies: 0
  2. close window    Forum: Javascript Forum
    Replies: 3
  3. onblur=window.close() trubles    Forum: Javascript Forum
    Replies: 0
  4. ONBLUR to close a window    Forum: Javascript Forum
    Replies: 10
  5. onFocus to close a window    Forum: Javascript Forum
    Replies: 1
  1. #1
    Glenvern's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Norfolk, UK.
    Posts
    112

    How do I get onUnload to close a window

    I need to close the current window when I leave it for another website.

    When I use an <a href> to link to another website I need the current window to close as it is playing a video which I need to stop on leaving the website. At the moment the new website opens in Normal screen instead of Maximised (that's another problem) so the current window is still visible and the video is still playing..

    I cannot stop it before leaving, I can only stop it via the href link - is this possible..?

    I have tried <body onUnload="window.close()"> but this (if my syntax is correct) does not work nor does onBlur.

    Anyone got any ideas please...

    Thanx..
    Last edited by Glenvern; 07-24-2007 at 12:20 PM.
    Glenvern



Tags for this Thread