Location object Javascript
<p>I've got a php file inside this folder structure:</p>

<p>Web -> script -> gen.php</p>

<p>From this gen.php I want to redirect with the <code>location()</code> function in Javascript to</p>

<p>Web->Index.html</p>

<p>I tried to do it like this:</p>

<pre><code>location = "localhost/Web/index.html"
</code></pre>

<p>But I only get a <code>404 error</code> saying that this path is invalid. What is the correct way to do this? </p>
