title: JavaScript 'onclick' event 'return' keyword functionality
body: <p>I am really new to javascript, and stumbled upon the <code>return</code> keyword. Basically, what is the difference in terms of these 2 statements?</p>
  
  <pre><code>&lt;input type="checkbox" onclick="doAlert()" /&gt;
  </code></pre>
  
  <p>vs </p>
  
  <pre><code>&lt;input type="checkbox" onclick="return doAlert();" /&gt;
  </code></pre>
  
  <p>Essentially, both returned the same results and called the function, but is there more to it? Any help greatly appreciated :). Thanks!</p>