本帖最后由 bychgh 于 2010-01-20 12:16:34 编辑

解决方案 »

  1.   

     <form name="form1" method="post" runat="server">
    </form>有,刚没贴出来
      

  2.   

    不要用document.form1这种形式
    用document.getElementByID()
      

  3.   

    1.给表单设置一个ID,document.getElementById("表单ID").submit();
    2.使用表单Name,document.表单Name.submit();
    3.document.forms[0].submit(); 
      

  4.   

    document.getElementById("form1").submit()
      

  5.   

    没有ID呀
    <form id="form1" method="post" runat="server">
    </form>
      

  6.   

    document.getElementById(""); 
    3.document.forms[0].submit();  
     
      

  7.   

    document.from1
    <form id="form1"></form>难道LZ还没看出什么问题么一个是from1  还有一个是form1
    明显的错误嘛
      

  8.   

    哈哈,我也是一眼就看到document.from1 :)
      

  9.   

    楼上的两位说2个form名字不一样,是我写错了,代码里没错。
    用  给表单设置一个ID,document.getElementById("表单ID").submit(); 有  服务器标记的格式不正确。的错误。用
    2.使用表单Name,document.表单Name.submit(); 
    3.document.forms[0].submit(); 按下回车后,密码框 被清空了,没有跳到验证
      

  10.   


    <tr>
                                                        <td align="middle" width="81">
                                                            <font color="#ffffff">密&nbsp; 码:</font></td>
                                                        <td>
                                                            <input class="input177" tabindex="2" type="password" id="Password" name="Password" onkeydown="if(event.keyCode == 13) document.getElementById("form1").submit();" runat="server" style="width: 145px; height: 22px" /></td>
                                                    </tr>报错
      

  11.   

    document.getElementById("表单ID").submit(); ("表单ID")改为  ('表单ID'),就不报错了,但回车密码框 被清空了,没有跳到验证,进入index.aspx