title: How to get the hashtag value and ampersand value of a url in Javascript?
body: <p>I have a url like <code>http://www.example.com/folder/file.html#val=90&amp;type="test"&amp;set="none"&amp;value="reset?setvalue=1&amp;setvalue=45"</code></p>
  
  <p>Now I need to get the portion of url from starting from #, How do I get that, I tried using <code>window.location.search.substr();</code> but looks like that searches for ? in a url. is there a method to get the value of url after #</p>
  
  <p>How do I also get  a portion of url from ampersand &amp; </p>
  
  <p>Thanks,
  Michael</p>