浏览模式: 普通 | 列表
10月, 2011 | 1
我写了个处理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>



解决办法,保留字冲突
...

阅读全文…
1