title: How to disable auto submit behavior when hitting enter key?
body: <p>I want to hit enter key to go to p2.htm or p3.htm according to the input text that I was typing in.  And I also want to hit submit1 button to alert('no1') manually.</p>
  
  <p>It works in FireFox, but in IE6, when I hit enter key it will submit the submit button.</p>
  
  <p>How can I make the thing right in IE 6 as it is in FireFox? </p>
  
  <p>I use javascript and jQuery.</p>
  
  <pre><code>&lt;input id="Text2"  type="text"  onkeyup="if(event.keyCode==13){go2();}" /&gt; 
  &lt;input id="Text3"  type="text"  onkeyup="if(event.keyCode==13){go3();}" /&gt; 
  
  &lt;input id="submit1"  type="submit" value="submit" onclick="alert('no1')" /&gt;
  
  &lt;script type="text/javascript"&gt;
      function go2()
      {
          window.location = "p2.htm";
      }
      function go3()
      {
          window.location = "p3.htm";
      }
  &lt;/script&gt;
  </code></pre>