title: How do I stop a html textbox from refreshing on enter key?
body: <p>I just want to ask how can I stop my html textbox from refreshing when I press enter.</p>
  
  <pre><code>&lt;div id="topSearchBox"&gt;
     &lt;input id="Text1" type="text" value="search..."/&gt;
     &lt;img id="topSearchBoxIcon" alt="search buttom" src="~Images/Search-32x32.png" width="18px" height="18px" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have a script that tells it to do some thing else, but after the script has completed it refreshes the page anyway.</p>
  
  <pre><code>$(document).keyup(function (e) {
          if (e.keyCode == 13) { // enter
              Search();
          }
      });
  </code></pre>
  
  <p>I've read a bit on it, but nothing seems to work.</p>