Can you display a jQuery UI modal dialog when user attempts to close the browser?

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-04-07T21:03:19Z Indexed on 2010/04/07 21:13 UTC
Read the original article Hit count: 185

Filed under:
|

I know how to show an alert when the user exits the browser and I know how to implement a neat modal dialog using the jQuery UI library. My problem is, I'd like to implement that dialog when the user attempts to close the browser rather than display the ugly little popup box. Is this do-able?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui