使用a标签删除进行提示 一句话搞定: <a href="Login.aspx" target="mainFrame" class="STYLE4" onclick='return confirm("确定删除该记录?");' >删除</a>