Created
March 15, 2016 07:28
-
-
Save veryblue/cbd4fa9bd6936058c5a9 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
window.addEventListener("beforeunload", function (e) { | |
var confirmationMessage = "入力内容を破棄します。"; | |
e.returnValue = confirmationMessage; | |
return confirmationMessage; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment