我有个页面,form如何自动提交? document.forms[0].submit;这个语句写在哪里能实现这个form的自动提交? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <form></form>document.forms[0].submit; <form id="allowSearch" name="allowSearch" action="http://jdyjhx.mofcom.gov.cn/manager/allowSearch!list.do" method="post"> <input type="hidden" name="is_show" value="1" id="allowSearch_is_show"/> <table width="100%" cellpadding="5" cellspacing="1" class="tbl_list_r"> <tr> <th width="16%">请输入编号:</th> <td width="84%"><input type="text" name="bean._vCode" size="25" value="NYHXJMPQUB0111422825" id="allowSearch_bean__vCode" class="webinput"/> <input name="button" type="submit" class="websub" id="button" value="查 询" /> </td> </tr> </table> </form> <script type="text/javascript"> document.forms[0].submit; </script>我怎么没提交呢? document.forms[0].submit();加个括号 window.onload=function(){document.forms[0].submit();}; head区也可以window.onload=function(){document.forms[0].submit();} 奇怪,提交了报错。但是点击那个submit就没错。 简单问题怎么调用js函数? 在js中如何把数组的每个值循环遍历到checkbox标签中(急需) 按键盘的向上键怎么让上一个文本框得到焦点 难道没有真正的页面全频显示的方法吗?? 求兼容IE的方法。试了半天,实在出不来。 一个奇怪的tag所覆盖范围的问题 div被遮盖问题 如何判断一个元素的parentElement或parentElement的parentElement是不是一个指定名称的元素 打印时提示"在此页上的ActiveX控件和本页……"? 有谁做过这样的JS? 谁能帮我看下,这else if 有什么不对呢? 根据一组数字组合成一种连续不重复的数字组合
document.forms[0].submit;
<input type="hidden" name="is_show" value="1" id="allowSearch_is_show"/>
<table width="100%" cellpadding="5" cellspacing="1" class="tbl_list_r">
<tr>
<th width="16%">请输入编号:</th>
<td width="84%"><input type="text" name="bean._vCode" size="25" value="NYHXJMPQUB0111422825" id="allowSearch_bean__vCode" class="webinput"/>
<input name="button" type="submit" class="websub" id="button" value="查 询" />
</td>
</tr>
</table>
</form>
<script type="text/javascript">
document.forms[0].submit;
</script>我怎么没提交呢?
};
window.onload=function(){document.forms[0].submit();}
但是点击那个submit就没错。