在提交页面时,怎样将多次提交点击屏蔽掉? <input type=submit name=abc onclick="this.disabled=true" value="提交"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 up,就用这种方法,csdn也是这样做的 <html><head><SCRIPT LANGUAGE=javascript>var bln=true;function test(){ if(bln) frm.submit(); bln=false;}</SCRIPT></head><body><form name="frm" target="_blank"><INPUT type="text" id=text1 name=text1><INPUT type="text" id=text2 name=text2><input type="text" name="test1"><div onclick="test()" style="cursor:hand">提交</div></form> 放在表单检验函数里disabled比较好<form name="frm1" onSubmit="return checkform()"><input type="text" name="txt"><input type=submit name="abc" value="提交"></form>function checkform() {if (document.frm1.txt.value == "") { alert("请输入!");document.frm1.txt.focus();return false;}frm1.abc.disabled=true;return true;} 求改jQuery折叠菜单 一个脚本问题 关于区分Button问题 input,自定义属性,无法取得 setTimeout的问题!急! 本次项目javascript总结 JS方法访问问题 [求助]图片中的onmouseup事件的响应问题 嵌入web页面的控件的方法的路径参数不支持http路径,有没办法解决? 关于ajax里面的两种写法有不同吗 写个正则,帮忙? 在一个frame里面包含一个含有框架的网页,请问怎样调用??
<SCRIPT LANGUAGE=javascript>
var bln=true;
function test(){
if(bln)
frm.submit();
bln=false;
}
</SCRIPT>
</head>
<body>
<form name="frm" target="_blank">
<INPUT type="text" id=text1 name=text1>
<INPUT type="text" id=text2 name=text2>
<input type="text" name="test1">
<div onclick="test()" style="cursor:hand">提交</div></form>
<form name="frm1" onSubmit="return checkform()">
<input type="text" name="txt">
<input type=submit name="abc" value="提交">
</form>
function checkform()
{
if (document.frm1.txt.value == "") {
alert("请输入!");
document.frm1.txt.focus();
return false;
}
frm1.abc.disabled=true;
return true;
}