title: history.back() does not update location.hash in Chrome/FireFox
body: <p>I tried to build a JS script that would change the location of the page, to go back until a specific hash location is found:</p>
  
  <pre><code>var StopAtThisHash ='#';
  var CurrentHash = window.location.hash;
  var continueLoop = true;
  while ((window.history.length&gt;0) &amp;&amp; (continueLoop))
  {
          window.history.back();
          var NowWeAreAtHash = window.location.hash; //this never changes in Chrome
          //actually, always seems to:  CurrentHash  == NowWeAreAtHash;
         if(NowWeAreAtHash == StopAtThisHash)
                          continueLoop= false;
  }
  </code></pre>
  
  <p>Weird enough, in Chrome and FF, the window.location.hash is not changed after back().. neither is the length of history decreased by 1 as I expected. The loop runs indefinitely, and the browser hangs up.</p>
  
  <p>In IE 9 this seems to run as intended.</p>
  
  <p>Any workarounds around this?</p>