title: Form Submit Execute JavaScript Best Practice?
body: <p>I would like to run a JavaScript function when a form is submitted. The issue is that, when the form is submitted, the page is reloaded and the form values are appended to the URL as GET parameters. I would like it to stay on the current page and only run the JavaScript function.</p>
  
  <p>I was wondering what the best practice (or what you do) to avoid having the page reload and parameters be sent.</p>