javascript assign()
<p>As far as I've tested, this two methods works, but I don't know wich one is the best, neither the differences between them, and that's what I'd like to know.</p>

<p>Here's the two methods :</p>

<pre><code>window.location = 'http://www.google.com';
window.location.assign = 'http://www.google.com';
</code></pre>

<p>Thougths?</p>
