请问这个js为什么不会报错? The submit method does not invoke the onsubmit event handler. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <br><script language=JavaScript>function validate(theform) { if (theform.chaptertitle.value=="" || theform.chaptercontent.value==" ") { alert("请输出标题和内容"); return false; } return true;}</script> <form name="theform" method="post"><input type=text size=80 maxlength=80 name="chaptertitle" value=""><input type=name name="abc"><textarea name=chaptercontent></textarea> <input type="button" value=" 发 表 " onclick="javascript:this.value='提交中,请稍候';this.disabled=true;validate(theform);"></form> javascrip浮点数计算 DateTimePicker控件的使用 jquery的问题 请教大师,如何在多个Radio选择某一个后,记住最后一次Checked的状态? 求一个根据URL显示不同图片的JS 在调用的pdf控件文档中如何实现自动滚屏? javascript对象疑惑 如何将display.shtml页面自动关闭?在线等 求一本中文版的JavaScript手册 flash字体,旋转! 怎样设置正正则的multiline属性 我出200分---请各位高手帮忙把这段代码升个级 另外100分就在附近
function validate(theform) {
if (theform.chaptertitle.value=="" || theform.chaptercontent.value==" ") {
alert("请输出标题和内容");
return false;
}
return true;
}</script>
<form name="theform" method="post">
<input type=text size=80 maxlength=80 name="chaptertitle" value="">
<input type=name name="abc">
<textarea name=chaptercontent></textarea>
<input type="button" value=" 发 表 " onclick="javascript:this.value='提交中,请稍候';this.disabled=true;validate(theform);">
</form>