title: JavaScript exit method
body: <p>I have a JavaScript method that i want to validate a form</p>
  
  <p>if the validation fails so</p>
  
  <pre><code>if (validationChecks ...... ){
      return alert("message")
  }
  else{
  //proceed
  }
  </code></pre>
  
  <p>however no matter what i do in the if the form still seems to submit, any ideas?</p>