title: onclick event in anchor tag not working in IE
body: <p>The following works fine in Firefox and Chrome, but IE 8 will not call the submit() method when the anchor link is clicked.</p>
  
  <pre><code>&lt;a href="javascript:void(0);" onclick="submit();"&gt;Sign In&lt;/a&gt;
  </code></pre>
  
  <p>The submit method is defined on the same page as follows:</p>
  
  <pre><code>&lt;head&gt;
  &lt;script type="text/javascript"&gt;
  
  function submit()
  {
  // other code                                              
  document.forms[0].submit();
  }  
  
  &lt;/script&gt;
  &lt;/head&gt;
  </code></pre>