删除确认问题
我想在此代码中加入确认按钮.
<!--#include file="conn.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>删除</title>
</head>
<%
Set rs = Server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = MM_oa_STRING
rs.Source = "delete * from oamain where oaid="& request("ID")
rs.CursorType = 0
rs.CursorLocation = 2
rs.LockType = 1
rs.Open()
%>
<body>
<p>
<script language="vbscript">
<!--
window.alert"此条信息删除成功!"
window.location.href="main.asp"
//-->
</script>
</p></body>
</html>
在执行删除前要用户确认.