Created
August 24, 2009 11:12
-
-
Save natbat/173820 to your computer and use it in GitHub Desktop.
This file contains 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
warning = false; | |
window.onbeforeunload = function() { | |
if (warning) { | |
return 'You have made changes on this page that you have not yet confirmed. If you navigate away from this page you will loose your unsaved changes'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment