<script language="javascript">
function confirmDel(str){
return confirm(str);
}
</script>
<a href="delete.asp" onclick="return confirmDel('确定要删除吗')">删除</a>