Redirect to google
<p>I just want to redirect the user to google search when he type some thing in text box and then submit, for that i coded:</p>

<pre><code>&lt;script type="text/javascript"&gt;
function gotosearch(){
var search = document.getElementById('q').value;
window.location = "http://www.google.com.pk/#hl=en&amp;source=hp&amp;biw=1024&amp;bih=604&amp;q="+search+"&amp;aq=f&amp;aqi=&amp;aql=&amp;oq=&amp;gs_rfai=&amp;fp=1";
return true;
}
&lt;/script&gt;
</code></pre>

<p>But window.location does not redirect to google page</p>

<p>but I failed...</p>
