title: window.location vs. document.location
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2430936/whats-the-difference-between-window-location-and-document-location-in-javascrip">What&#39;s the difference between window.location and document.location in JavaScript?</a>  </p>
  </blockquote>
  
  
  
  <p>In JavaScript, both <code>window</code> and <code>document</code> have a <code>location</code> property, and by setting both to a different URL, browser loads the new URL. </p>
  
  <p>What's the difference between them? </p>