使用document.form1.submit为什么报脚本出错的问题
[ 2011-10-25 10:17:42 | 作者: admin ]
我写了个处理submit的功能,用的和以前的方法相同.按钮设为button
<form name= "form1 " id= "form1 " method= "post " action= "log.asp " >
<input type= "button " name= "Submit " value= "提交 " onClick= "datacheck ">
</form>
<script language=javascript>
document.form1.submit();
//document.getElementByIdx_x("form1").submit();
//document.getElementById("form1").submit();
</script>
解决办法,保留字冲突
...
阅读全文…
<form name= "form1 " id= "form1 " method= "post " action= "log.asp " >
<input type= "button " name= "Submit " value= "提交 " onClick= "datacheck ">
</form>
<script language=javascript>
document.form1.submit();
//document.getElementByIdx_x("form1").submit();
//document.getElementById("form1").submit();
</script>
解决办法,保留字冲突
...
阅读全文…
1