当前位置:主页 > 软件编程 > PHP代码 >

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

时间:2021-07-04 09:23:44 | 栏目:PHP代码 | 点击:

复制代码 代码如下:

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

您可能感兴趣的文章:

相关文章