Home >Web Front-end >JS Tutorial >js-confirm-confirm cancel dialog box
true;
}else {
//alert("cancel"); -------------------
if(!window.confirm('All information under this column will be deleted')){
alert("You click Cancel");
return false;
}
alert("You clicked OK");
-------------------------- -----------------------
"onclick="return window.confirm('Do you really want to delete this questionnaire? All data in this questionnaire will be cleared and cannot be recovered!?')">Delete