title: Is there any difference between window.location and window.location.href?
body: <blockquote>
  <p><strong>Possible Duplicate:</strong><br />
  <a href="https://stackoverflow.com/questions/2383401/javascript-setting-window-location-href-versus-window-location">Javascript: Setting window.location.href versus window.location</a></p>
  </blockquote>
  
  <p>When I tested these code in browser it seems like they are the same. Is there any difference?</p>
  <h1>1</h1>
  <pre><code>window.location = "http://stackoverflow.com";
  </code></pre>
  <h1>2</h1>
  <pre><code>window.location.href = "http://stackoverflow.com";
  </code></pre>