Capture browser closing

How can I know when the user closes his browser ?
I need to do some actions before: log the user off, ...
To begin with: how do I see javascript alert when the user closes his application browser ?



  • The onUnload event handler might work, or it might not. If it does, it's not gonna be very reliable. AFAIK there's really no reliable way to do it.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion