title: window.location.hash returns hash tag in front of value
body: <p>I have the following code in MVC3 view:</p>
  
  <pre><code> $(document).ready(function () {
      if (window.location.hash) {
          var manager= new Manager();
  
          manager.doSomeStuff(window.location.hash);
      }
  });
  </code></pre>
  
  <p>The interesting thing is that when there is no hash tag in the URL, or there is only a hash tag example:</p>
  
  <pre><code>http://localhost:1223/Index/AboutUs
  
  http://localhost:1223/Index/AboutUs#
  </code></pre>
  
  <p>When the <code>window.location.hash</code> is empty and the function is not executed.
  But when there is some value in the hash tag:</p>
  
  <pre><code>http://localhost:1223/Index/AboutUs#categoryId=5&amp;manufacturerId=8
  </code></pre>
  
  <p>The value in the <code>window.location.hash</code> is <code>#categoryId=5&amp;manufacturerId=8</code></p>
  
  <p>Can you explain to me why the <code>#</code> tag is included in the value and why when there is no value after the <code>#</code> tag, the <code>window.location.hash</code> is empty.</p>