Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.onbeforeunload = function(){
- return 'Are you sure you want to leave?';
- };
- $(window).unload(function() {
- // do something
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement