title: How to trigger onClick before href
body: <p>I am trying to do some functionality in <code>onClick()</code> event and also doing the <code>href</code> for the same element. But actually happening is its not triggering <code>onClick()</code> completely and its moving to <code>href</code> link when we click that element.</p>
  
  <p>How to make <code>onClick()</code> gets complete first and trigger <code>href</code> next.</p>
  
  <pre><code>&lt;a href="" onclick="javascript:triggerMe()"&gt;click&lt;/a&gt;
  </code></pre>