不响应action事件。
<form action="a.htm" method="post" onSubmit="return false">
用户名:<input name="username">
<input type="submit" value="Submit">
</form>

解决方案 »

  1.   

    //两个提交按妞,其中响应一个不响应
    <script>
    var flag="";
    function sub(){
      if(flag == "yes"){
         return true;
      }
      else{
         return false;
      }
    }
    </script><form action="a.htm" method="post" onSubmit="return sub()">
    用户名:<input name="username">//提交
    <input type="submit" name="submit1" value="Submit1" onclick="javascript:flag='yes'">
    //不提交
    <input type="submit" name="submit2" value="Submit2" onclick="javascript:flag='no'"><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0> 
     </OBJECT>  <input onclick=document.all.WebBrowser.ExecWB(8,1) type=button value=页面设置 name=Button4> 
     <input onclick=document.all.WebBrowser.ExecWB(6,1) type=button value=打印 name=Button> </form>
      

  2.   

    document.all.WebBrowser.ExecWB(8,1)用这网页有错误