日期:2014-05-16 浏览次数:20383 次
<script language="javascript">
??? function delID(ID,url,mes){
??????? var mymes;
??????? mymes=confirm(mes);
??????? if(mymes==true){
??????????? window.location=url+ID;
??????? }
??? }
</script>
调用方法
<a href=# onclick="delID(1,'delete.asp?id=','确实要删除吗?')">test</a>
?
?
?
<script language="javascript">
function delcfm()
{
??? if(!confirm("确认要删除?"))
??? {
??????? window.event.returnValue = false;
??? }
}
</script>
调用方法
<a href="delete.php?id=1" onclick="delcfm()">test</a>