Created
April 9, 2016 16:48
-
-
Save lakshmankumar12/30022757946003d279f5e0c2c0f5d180 to your computer and use it in GitHub Desktop.
Make a web-page not exit on ctrl-w
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onbeforeunload = function(){ | |
return 'Are you sure you want to leave?'; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment