Created
October 15, 2021 09:27
-
-
Save undrafted/27c37f5944d87809ae97deaf8e4cb350 to your computer and use it in GitHub Desktop.
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.addEventListener('beforeunload', function(e) { | |
e.returnValue = 'Are you sure?'; | |
return e.returnValue; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment