Home > php教程 > php手册 > body text

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

WBOY
Release: 2016-06-06 20:25:53
Original
2277 people have browsed it

当执行某一操作比如确认或者取消时如何弹出对话框,针对这个需求,下面使用php来实现下,感兴趣的朋友不要错过

复制代码 代码如下:


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

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!