title: Javascript stop a redirect
body: <p>I have a script that detects an android device then redirects to "android.html". On the "android.html" page you can either download an app or click "CONTINUE" to continue to "index.html". The problem is when you click "CONTINUE", you get stuck in an infinite redirect loop back to the "android.html. How to i make clicking "CONTINUE" ignore the browser detection redirect script?</p>
  
  <p>index.html javascript android detection redirect</p>
  
  <pre><code>var isAndroid = ua.indexOf("android") &gt; -1;
  if(isAndroid) {
     window.location = 'android.html';
  }
  </code></pre>
  
  <p>android.html</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  If you are not using Dolphin Browser HD.&lt;/br&gt;
  &lt;a href="dbs/js/DolphinbrowserV7.3.1beta.apk"&gt;CLICK HERE TO INSTALL&lt;/a&gt;&lt;/br&gt;&lt;/br&gt;
  &lt;a href="index.html"&gt;CONTINUE&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>