Home >Web Front-end >JS Tutorial >js-confirm-confirm cancel dialog box

js-confirm-confirm cancel dialog box

高洛峰
高洛峰Original
2016-12-17 14:22:542069browse

​​​​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






For more js-confirm-Confirm Cancel Dialog related articles, please pay attention to the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn