form1.tempbtn.click()<input type="submit" name="tempbtn" value="提交">

解决方案 »

  1.   

    可以直接
    form1.submit()//提交的话
      

  2.   

    <input onkeydown="if(event.keyCode==13)messagek()">
      

  3.   

    <html>
    <head>
    <title>&Icirc;&THORN;±ê&Igrave;&acirc;&Icirc;&Auml;&micro;&micro;</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    /////////////////////&acute;&Euml;&acute;&brvbar;&Ocirc;&otilde;&Atilde;&acute;&ETH;&acute;&pound;&iquest;//////////////////
    <script language="javascript">
    function messagek()
    {
     document.f.tempbtn.click()//&acute;í
    }
    ////////////////////////
    </script>
    <body bgcolor="#FFFFFF" text="#000000">
    <form name=f>
    <table width="100%" border="0" height="413">
      <tr>
        <td>
          <form name="form1" method="post" action="">
            <p>
              <input type="text" name="temptxt" onkeypress = "messagek()">
            </p>
            <p> 
              <input type="button" name="tempbtn" value="&Igrave;á&frac12;&raquo;" onclick="alert('ok')">
            </p>
          </form>
        </td>
      </tr>
    </table>
    </form>
    </body>
    </html>
      

  4.   

    <input type='text' name='ipt' onkeydown="btn.onclick()">
    <button onclick="alert('你点击了我--button')" id='btn'>test</button >测试通过!
      

  5.   

    <input type="text" name="temptxt" onkeypress = "messagek()">
    ==>
    <input type="text" name="temptxt" onkeypress = "document.form1.tempbtn.onclick()"><input type="button" name="tempbtn" value="提交" onclick='alert("test sucees!")'>肯定可以!是你写错了。看看我给你改过之后的!