Javascript: Setting window.location.href versus window.location
<p>When would you set window.location to a URL string versus setting window.location.href?</p>

<pre><code>window.location = "http://www.stackoverflow.com";
</code></pre>

<p>vs</p>

<pre><code>window.location.href = "http://www.stackoverflow.com"
</code></pre>

<p>Reference: <a href="https://developer.mozilla.org/En/DOM/Window.location" rel="nofollow">https://developer.mozilla.org/En/DOM/Window.location</a></p>
