how to do i redirect to users after onclick submit button?
<p>how to do i redirect to users after on click submit button? javascript not working after click on submit button?</p>

<p><strong>Javascript</strong></p>

<pre><code>&lt;script type="text/javascript" language="javascript"&gt;
function redirect()
{
    window.location.href="login.php";
}
&lt;/script&gt;
</code></pre>

<p><strong>Form Page</strong></p>

<pre><code>&lt;form  name="form1" id="form1" method="post"&gt;  
&lt;input type="submit" class="button4" name="order" 
 id="order" value="Place Order" onclick="redirect();" &gt;
&lt;/form&gt;
</code></pre>
