KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to capture the browser window/tab close event. I have tried the following with jQuery: jQuery(window).bind( "beforeunload", function() { return confirm("Do you really want to close?") } ) But it works on form submission as well, which is not what I want. I want an event that triggers only when the user closes the window.
Tags (comma-separated)
Save Edits
Cancel