Results 1 to 2 of 2

Thread: Browser being closed down

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Location
    Scotland
    Posts
    8

    Question Browser being closed down

    Hi,

    Can anyone tell me how to determine if the browser window is being closed (either by alt-F4, File->Close, or clicking the X). I have tried using the window.onunload event but because this fires when navigating to another page that is no use.

    Many thanks in advance

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    maybe onbeforeunload?

    otherwise, there is no other event that might work

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width