Created
November 28, 2013 12:08
-
-
Save bondarewicz/7690874 to your computer and use it in GitHub Desktop.
JS: Confirm leaving page
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 'You will lose all changes if you leave this page.'; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment