Capture browser closing - Programmers Heaven

Howdy, Stranger!

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


Capture browser closing

ampoampo Posts: 63Member
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 ?



  • WeirdofreakWeirdofreak Posts: 439Member
    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.