Created
February 2, 2020 14:22
-
-
Save motsu0/a70d70113f4031b362880b7f8a841ffd 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.alert('アラートのテキスト'); | |
//選択肢付きアラート | |
//window.confirm('foo') => true or false | |
if(window.confirm('トップページへ戻りますか?')) location.href = '/'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment