form1.submit();
//form1为表单的名字

解决方案 »

  1.   

    那个只能调用表单onsubmit对应的事件,不能真正将当前表单发送到action指定的页的
      

  2.   

    form1.action="你要发送的页面地址"
    form1.submit();
      

  3.   

    function okValidate()
    {
    var v=confirm("Send OK?");
    if(v)
    return true;
    return false;
    }<form action="x.html"  name="frm1" onsubmit="return okValidate()">
    <input type="text"/>
    <input type="submit" value="submit" name="subm"/>
    </form>
    停留时间:
    <INPUT name="butsub" TYPE="button" VALUE="测试发送" onclick="frm1.onsubmit();">请测试这段代码,您是否认为点了最下面的butsub按钮后该表单会发送出去呢?