Created
April 2, 2014 08:32
-
-
Save iamtekeste/9930202 to your computer and use it in GitHub Desktop.
Alert During Page Reload!
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
<script type="text/javascript"> | |
window.onbeforeunload = function() { | |
return "Dude, are you sure you want to leave? Think of the kittens!"; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment