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>

 

posted @ 2013-04-25 15:25  静心聆听  阅读(473)  评论(0编辑  收藏  举报