<form name=form1>
<input name=a type=submit>
</form><input onclick="document.form1.a.click()">

解决方案 »

  1.   

    Object doesn't support this property or method.出现了这样的错误。<html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type=text/css title="">
    <--
    body{font-size: 9pt;}
    td{font-size: 9pt}
    font{font-size:9pt}
    input{font-size: 12; border-style: solid; border-width: 1; padding: 0;}
    select{font-size: 9pt}
    button{font-size: 12; border-style: solid;border-width: 1; padding: 0;}
    a:link{ color: #FFFFFF; text-decoration: none}
    a:visited{ color: #FFFFFF; text-decoration: none}
    a:hover{ color: #FFFFFF; text-decoration: underline}
    -->
    </style>
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <table width="600" border="2" cellspacing="0" cellpadding="0" align="center">
      <tr> 
        <td bgcolor="#999999"> 
          <table width="100%" border="0" cellspacing="2" cellpadding="2">
            <tr> 
              <td><font color="#FFFFFF">E2ROM信息</font></td>
              <td>
                <div align="right"><font color="#FFFFFF"><a href="/help">帮助</a></font></div>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td bgcolor="#CCCCCC">
    <form name="setform" method="post" action="/cgi-bin/changemk">
            <input type="hidden" name="radiono" value="0">
          </form>
            <table width="70%" border="0" align="center" cellpadding="9" cellspacing="9">
              <tr> 
                <td width="25%"> 
                  <table width="100%" border="1" cellspacing="1" cellpadding="2">
                    <tr> 
                      <td>电口1、2状态</td>
                    </tr>
                    <tr> 
                      <td> 
                        <table width="100%" height="66" border="1" cellpadding="1" cellspacing="1">
                          <tr> 
                            <td>DUP</td>
                            <td>SPD</td>
                          </tr>
                          <tr> 
                            <td> <span id="tb"> 
                              <table width="100%" border="0" cellspacing="1" cellpadding="7" >
                                <tr> 
                                  <td> 
                                    <input type="radio" name="r1" value="0" onmouseup='return mychange(1)'>
                                    FULL</td>
                                </tr>
                                <tr> 
                                  <td> 
                                    <input type="radio" name="r1" value="1" onmouseup='return mychange(2)'>
                                    HALF</td>
                                </tr>
                              </table>
                              </span> </td>
                            <td> 
                              <table width="100%" border="0" cellspacing="1" cellpadding="3">
                                <tr> 
                                  <td> 
                                    <input type="radio" name="r2" value="0" onmouseup='return mychange(3)'>
                                    AUTO</td>
                                </tr>
                                <tr> 
                                  <td> 
                                    <input type="radio" name="r2" value="1" onmouseup='return mychange(4)'>
                                    100M</td>
                                </tr>
                                <tr> 
                                  <td> 
                                    <input type="radio" name="r2" value="2" onmouseup='return mychange(5)'>
                                    10M</td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
                <td width="25%"> 
                  <table width="100%" border="1" cellspacing="1" cellpadding="2">
                    <tr> 
                      <td>光口1、2状态</td>
                    </tr>
                    <tr> 
                      <td><span id="guangkou"> 
                        <table width="100%" height="66" border="1" cellpadding="1" cellspacing="1">
                          <tr> 
                            <td>DUP</td>
                            <td>SPD</td>
                          </tr>
                          <tr> 
                            <td> 
                              <table width="100%" border="0" cellspacing="1" cellpadding="7">
                                <tr> 
                                  <td> 
                                    <input type="radio" checked>
                                    FULL</td>
                                </tr>
                                <tr> 
                                  <td> 
                                    <input type="radio">
                                    HALF</td>
                                </tr>
                              </table>
                            </td>
                            <td> 
                              <table width="100%" border="0" cellspacing="1" cellpadding="3">
                                <tr> 
                                  <td> 
                                    <input type="radio">
                                    AUTO</td>
                                </tr>
                                <tr> 
                                  <td> 
                                    <input type="radio" checked>
                                    100M</td>
                                </tr>
                                <tr> 
                                  <td> 
                                    <input type="radio">
                                    10M</td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                        </span> </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
        </td>
      </tr>
    </table>
    <script language="JavaScript">
    document.all.r1[0].click();
    function mychange(myvalue){
    if(confirm('确定要更改设置吗?')){
    document.setform.Submit();
    return true;
    }
    else{
    return false;
    }
    }
    </script>
    </body>
    </html>
      

  2.   

    function mychange(myvalue){
    if(confirm('确定要更改设置吗?')){
                      document.setform.radiono=myvalue
    document.setform.Submit();
    }
    }
    调用时:
    onclick='mychange(1)'
      

  3.   

    <html>
    <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type=text/css title="">
    <--
    body{font-size: 9pt;}
    td{font-size: 9pt}
    font{font-size:9pt}
    input{font-size: 12; border-style: solid; border-width: 1; padding: 0;}
    select{font-size: 9pt}
    button{font-size: 12; border-style: solid;border-width: 1; padding: 0;}
    a:link{ color: #FFFFFF; text-decoration: none}
    a:visited{ color: #FFFFFF; text-decoration: none}
    a:hover{ color: #FFFFFF; text-decoration: underline}
    -->
    </style>
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <table width="600" border="2" cellspacing="0" cellpadding="0" align="center">
      <tr> 
        <td bgcolor="#999999"> 
          <table width="100%" border="0" cellspacing="2" cellpadding="2">
            <tr> 
              <td><font color="#FFFFFF">E2ROM信息</font></td>
              <td>
                <div align="right"><font color="#FFFFFF"><a href="/help">帮助</a></font></div>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td bgcolor="#CCCCCC">
    <form name="setform" method="post" action="/cgi-bin/changemk">
            <input type="hidden" name="radiono" value="0">
          </form>
            <table width="70%" border="0" align="center" cellpadding="9" cellspacing="9">
              <tr> 
                <td width="25%"> 
                  <table width="100%" border="1" cellspacing="1" cellpadding="2">
                    <tr> 
                      <td>电口1、2状态</td>
                    </tr>
                    <tr> 
                      <td> 
                        <table width="100%" height="66" border="1" cellpadding="1" cellspacing="1">
                          <tr> 
                            <td>DUP</td>
                            <td>SPD</td>
                          </tr>
                          <tr> 
                            <td> <span id="tb"> 
                              <table width="100%" border="0" cellspacing="1" cellpadding="7" >
                                <tr> 
                                  <td> 
                                    <input type="radio" name="r1" value="0" onmouseup='return mychange(1)'>
                                    FULL</td>
                                </tr>
                                <tr> 
                                  <td> 
                                    <input type="radio" name="r1" value="1" onmouseup='return mychange(2)'>
                                    HALF</td>
                                </tr>
                              </table>
                              </span> </td>
                            <td> 
                              <table width="100%" border="0" cellspacing="1" cellpadding="3">
                                <tr> 
                                  <td> 
                                    <input type="radio" name="r2" value="0" onmouseup='return mychange(3)'>
                                    AUTO</td>
                                </tr>
                                <tr> 
                                  <td> 
                                    <input type="radio" name="r2" value="1" onmouseup='return mychange(4)'>
                                    100M</td>
                                </tr>
                                <tr> 
                                  <td> 
                                    <input type="radio" name="r2" value="2" onmouseup='return mychange(5)'>
                                    10M</td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
                <td width="25%"> 
                  <table width="100%" border="1" cellspacing="1" cellpadding="2">
                    <tr> 
                      <td>光口1、2状态</td>
                    </tr>
                    <tr> 
                      <td><span id="guangkou"> 
                        <table width="100%" height="66" border="1" cellpadding="1" cellspacing="1">
                          <tr> 
                            <td>DUP</td>
                            <td>SPD</td>
                          </tr>
                          <tr> 
                            <td> 
                              <table width="100%" border="0" cellspacing="1" cellpadding="7">
                                <tr> 
                                  <td> 
                                    <input type="radio" checked>
                                    FULL</td>
                                </tr>
                                <tr> 
                                  <td> 
                                    <input type="radio">
                                    HALF</td>
                                </tr>
                              </table>
                            </td>
                            <td> 
                              <table width="100%" border="0" cellspacing="1" cellpadding="3">
                                <tr> 
                                  <td> 
                                    <input type="radio">
                                    AUTO</td>
                                </tr>
                                <tr> 
                                  <td> 
                                    <input type="radio" checked>
                                    100M</td>
                                </tr>
                                <tr> 
                                  <td> 
                                    <input type="radio">
                                    10M</td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                        </span> </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
        </td>
      </tr>
    </table>
    <script language="JavaScript">
    document.all.r1[0].click();
    function mychange(myvalue){
    if(confirm('确定要更改设置吗?')){
    document.setform.submit();
    }
    else{
    return false;
    }
    }
    </script>
    </body>
    </html>
      

  4.   

    document.form1.submit();   // form1为form 的 name
      

  5.   

    document.forms[i].submit();就可以了