window.location redirect not working in Android
<p>I'm trying to redirect to a different page using javascript. It works nicely with Firefox but not with Android. Here's a sample code:</p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;
&lt;head&gt;
&lt;meta name="viewport" content="width=device-width" /&gt;
&lt;meta content="text/html; charset=UTF-8" http-equiv="content-type" /&gt;
&lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
    document.write("1: " + window.location.href + "&lt;br /&gt;");
    window.location = "http://www.google.com";
    document.write("2: " + window.location.href + "&lt;br /&gt;");
    window.location.href = "http://www.google.com";
    document.write("3: " + window.location.href + "&lt;br /&gt;");
    window.location.assign("http://www.google.com");
    document.write("4: " + window.location.href + "&lt;br /&gt;");                       
&lt;/script&gt;
&lt;title&gt;Test&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>The goal is to redirect to google.com and I'm trying 3 different approaches. Firefox redirects immediately. Android prints the first location and then stops. If I comment out</p>

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

<p>then it prints the first two and stops. And so on. For some reason, I can read window.location just fine but when I try to modify it, the script hangs. Any help would be great. Using Android 2.2.</p>
