title: Access event to call preventdefault from custom function originating from onclick attribute of tag
body: <p>I have links like this:</p>
  
  <pre><code>&lt;a href="#" onclick="myfunc({a:1, b:'hi'})" /&gt;click&lt;/a&gt;
  &lt;a href="#" onclick="myfunc({a:3, b:'jo'})" /&gt;click&lt;/a&gt;
  </code></pre>
  
  <p>And I would like to do a <code>preventDefault()</code> inside <code>myfunc()</code>, because a <code>#</code> will be added in the address bar when clicking on the link 
  (without doing <code>return false;</code> or <code>href='javascript:void(0);'</code>)</p>
  
  <p>Is this possible?
  Can I get the event inside <code>myfunc()</code></p>