Close button detection using JavaScript

Posted by Ajay_kumar on Stack Overflow See other posts from Stack Overflow or by Ajay_kumar
Published on 2010-06-17T11:19:29Z Indexed on 2010/06/17 12:03 UTC
Read the original article Hit count: 114

Filed under:

I want to give an alert using JavaScript when the user clicks the close button of the browser. How do I detect the event?

© Stack Overflow or respective owner

Related posts about javascript-events