js confirm() 弹框确认

<html>
<head>
</head>
<body>
<script>
function delConfirm(){
    if(confirm("确定删除该记录吗?删除将不能恢复!")) return true; else return false;
}
</script>
<a href="http://www.baidu.com" onclick="return delConfirm()">删除</a>
</body>
</html>
原文地址:https://www.cnblogs.com/houweijian/p/3042634.html