怎样在执行ASP删除前弹出有“确定”“取消”按钮的提示框? if(confirm("你真的要删除吗"))//dele codeelse//other 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <input type="button" name="Submit" value="删除" OnClick=delinfo()><script>function delinfo(){ if (!confirm("真要删除吗?")) return; form1.submit();} <html><head><title>无标题文档</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><Script Language="JavaScript">function delinfo(){if(confirm("你真的要删除吗")) document.form1.submit()}</Script></head><body bgcolor="#FFFFFF" text="#000000"><form name="form1" method="post" action="del.asp"> <select name="select"> <option>南京</option> <option>西安</option> </select> <input type="button" name="Submit" value="删除" OnClick="delinfo()"></form></body></html> if(confirm("你真的要删除吗")) location=del.asp?select=form1.select.value ; <a href='javascript:con=window.confirm("单击“确定”继续。单击“取消”停止。"); if (con) window.location="delorder.asp?order_id=<%=rs(0)%>";'>删除</a> 关于XML+ JS创建树形菜单的一个疑问? 谁能解决这个问题:控制图片左右滚动+图片任意拖动 求一个在同一页面,两个漂浮图片的代码 JavaScript文本读取 请教:如何让层的内容显示在下拉列表上面。在线等。。。。 关于multiple select JS中请教对字符串的处理,如何删除、替换指定的字符串?感激不尽! 校验文本框所输入的日期格式是否正确 怎么屏蔽掉 用户的键盘输入?(在线等) 前端不用npm怎么做? 求救,在线给分 现在想取一列后的值
function delinfo(){
if (!confirm("真要删除吗?")) return;
form1.submit();
}
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<Script Language="JavaScript">
function delinfo(){
if(confirm("你真的要删除吗")) document.form1.submit()
}
</Script>
</head><body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="del.asp">
<select name="select">
<option>南京</option>
<option>西安</option>
</select>
<input type="button" name="Submit" value="删除" OnClick="delinfo()">
</form>
</body>
</html>