title: Want HTML form submit to do nothing
body: <p>I want an HTML form to do nothing after it has been submitted.</p>
  <pre><code>action=&quot;&quot;
  </code></pre>
  <p>is no good because it causes the page to reload.</p>
  <p>Basically, I want an Ajax function to be called whenever a button is pressed or someone hits <kbd>Enter</kbd> after typing the data. Yes, I could drop the form tag and add just call the function from the button's onclick event, but I also want the &quot;hitting enter&quot; functionality without getting all hackish.</p>