javascript window.location and JS Frame error
<p>I'm trying to redirect a page via javascript:</p>

<pre><code>window.location('http://www.google.com');
</code></pre>

<p>but in firefox, I'm getting this error:</p>

<pre><code>Error: uncaught exception: [Exception... "Cannot convert WrappedNative to function"
nsresult: "0x8057000d (NS_ERROR_XPC_CANT_CONVERT_WN_TO_FUN)"  location: "JS frame ::
[url of my page] :: anonymous :: line 1809"  data: no]
</code></pre>

<p>and, well, I have no idea what that means. What's a JS frame? I'm not using any frames on the page itself. </p>

<p>Stumped.</p>
