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?
Share
Nope, sorry, that’s by design. It keeps people from writing nasty things that keeps the page from being closed.