Home  >  Article  >  Backend Development  >  php实现执行某一操作时弹出确认、取消对话框_php技巧

php实现执行某一操作时弹出确认、取消对话框_php技巧

WBOY
WBOYOriginal
2016-05-17 08:51:441020browse
复制代码 代码如下:

<script> <BR>function del(){ <BR>if(confirm("确定要删除吗?")){ <BR>alert('删除成功!'); <BR>return true; <BR>}else{ <BR>return false; <BR>} <BR>} <BR></script>

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