title: html required not working with onclick
body: <p>I have the following which I use for submitting forms on my site:</p>
  
  <pre><code>&lt;a onclick="document.forms['REGform'].submit(); return false;" class="button" href="javascript:;"&gt;Register&lt;/a&gt;
  </code></pre>
  
  <p>I have inputs within the form with the required tag but this does not seem to fire them? Meaning doesn't stop empty inputs being submitted.</p>
  
  <p>If I use a normal submit button it works fine by the way - is onclick not a recognised way to submit a form within html5?</p>