title: window.location is undefined in ie8
body: <p>Anybody knows why window.location is undefined in ie8 (maybe ie7 too), but works as document.location?</p>
  
  <p>I couldn't find why another file, from other project has a similar code but hasn't a problem with IE.</p>
  
  <p>I'm get a weird error too: 'window.location.hash is null or not an object in jquery 1.6.4 line 2'. I tried 1.5.1 too, but same error.</p>
  
  <p>The header:</p>
  
  <pre><code>&lt;html lang=""&gt;
  &lt;head&gt;
      &lt;meta http-equiv="content-type" content="text/html; charset=utf-8"/&gt;
      &lt;link rel="stylesheet" href="assets/css/style.css"&gt;
      &lt;script src="assets/js/jquery.1.6.4.min.js"&gt;&lt;/script&gt;
      &lt;!--[if lt IE 9]&gt;
      &lt;script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt;
      &lt;![endif]--&gt;
  
      &lt;script src="assets/js/jquery.easing.1.3.js"&gt;&lt;/script&gt;
      &lt;script src="assets/js/jquery.ba-hashchange.min.js"&gt;&lt;/script&gt;
      &lt;script src="assets/js/script.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>The JS part:</p>
  
  <pre><code>if( window.onhashchange )
  {
      window.onhashchange = function()
      {
          hashChanged( window.location.hash );
      }
  }
  else
  {
      var storedHash = window.location.hash;
      window.setInterval( function()
      {
          if( window.location.hash != storedHash )
          {
              storedHash = window.location.hash;
              hashChanged( storedHash );
          }
      }, 100 );
  }
  </code></pre>