http://expert.csdn.net/Expert/topic/2487/2487051.xml?temp=.9139368

解决方案 »

  1.   

    <script>
    if(confirm("Are You Sure??"))
      location="deletecard.asp"
    else
      history.back()
    </script>你要注意一下你的代码运行的环境
    response.redirect("deletecard.asp")分明是asp语法,也就是服务器端脚本,根本不能用msgbox之类的对话框方法,而且,对于服务器端脚本,何来history????
      

  2.   

    使用 savehistory<HTML>
    <HEAD>
    <META NAME="save" CONTENT="history">
    <STYLE>
       .sHistory {behavior:url(#default#savehistory);}
    </STYLE>
    </HEAD>
    <BODY>
    <INPUT class=sHistory type=text id=oPersistInput>
    </BODY>
    </HTML>