首页 > 编程 > PHP > 正文

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

2019-11-22 00:10:15
字体:
来源:转载
供稿:网友
复制代码 代码如下:

<script>
function del(){
if(confirm("确定要删除吗?")){
alert('删除成功!');
return true;
}else{
return false;
}
}
</script>
<button onclick="del()">确定</button>
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表