title: Get URL hash during click event/function
body: <p>During a jQuery click event function, I understand the click event is fired before the underlying event is completed (and URL is updated)... so you can control the event.  Which means the hash of the link isn't yet available via <code>window.location.hash</code></p>
  
  <p>Is <code>e.target.hash</code> better than reaching into the <code>&lt;a&gt;</code> element itself to get the hash value; or passing the necessary variable via an <code>onclick</code> event? "Better" defined as cross-browser compatibility or more prone to errors.</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;a class="accountLink" href="#account/123456"&gt;Account 123456&lt;/a&gt;
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>$('.accountLink').click(function(e){
    console.log(e.target.hash);
    console.log(window.location.hash);
  });
  </code></pre>
  
  <p>Log:</p>
  
  <pre class="lang-js prettyprint-override"><code>#account/123456
  (blank on initial click)
  </code></pre>
  
  <p><a href="https://jsfiddle.net/r1xpsut1/1/" rel="nofollow">https://jsfiddle.net/r1xpsut1/1/</a></p>