title: How to get #hash value in a URL in JS
body: <p>For example, I have a URL as :</p>
  
  <blockquote>
    <p><a href="http://www.google.com/#hash=value2x">http://www.google.com/#hash=value2x</a></p>
  </blockquote>
  
  <p>I want a js code to return just <code>value2x</code>.
  I tried <code>location.hash.split('=')[1]</code> but that results the first hash value like if url is </p>
  
  <blockquote>
    <p><a href="http://www.google.com/#hfh=fdg&amp;hash=value2x">http://www.google.com/#hfh=fdg&amp;hash=value2x</a></p>
  </blockquote>
  
  <p>It returns <code>fdg&amp;hash</code>.
  I want just the value of <code>hash</code>.</p>
  
  <p>NO jQuery Please.</p>
  
  <p>Thanks for the help in advance.</p>