「JavaScript」confirmでダイアログを表示するサンプル
書式
!confirm('メッセージ’)
使用例
function deleteUser() {
if(!confirm('ユーザを削除します。')){
return;
}
// some code
}
Coding Changes the World
書式
!confirm('メッセージ’)
使用例
function deleteUser() {
if(!confirm('ユーザを削除します。')){
return;
}
// some code
}