<script language="javascript">
<!--
function ConfirmDel(url)
{
if(confirm("您确定要删除吗?"))
{
window.location.href=url;
}
else
{
return false;
}
}
-->
</script>
调用:
<a href="#" onclick="javascript:ConfirmDel('del.asp?id=<%= rs("id")%>')">删除</a>
<a href="del.asp" onClick="return confirm('确定要删除吗?一旦删除不可恢复!')">删除</a>