Last active
January 17, 2020 12:21
-
-
Save luislobo14rap/76f3e1d8674fab09068430e017c48b90 to your computer and use it in GitHub Desktop.
browser-exit-confirmation.js
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
// browser-exit-confirmation.js v1 | |
window.onbeforeunload = function(event){ | |
event = event || window.event; | |
return 'Sure?'; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment