我有个页面,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就没错。 关于jsp页面中文乱码和ckeditor4配置无效问题 一个困扰我已久的转换问题,高手进来帮我看看 如何做出携程网 酒店价格提示框那种效果? 想做一个Javascript流程监控,望高手探讨指点一下! QQ在线浮动浮动代码 请教一个document.formLogon的问题 form中可以套一个form吗? 关于图层的问题??请教各位高手!拜托 javascript不支持重载吧? 请问这是何意思?变量!!! 谁能帮我看下,这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就没错。