title: Redirect to another page on document.ready in android browsers
body: <p>Im trying to redirect to another html page on load of one page. Below is my code (I want to automatically load 2.html when i open 1.html)
  <strong>P.S:</strong> I could not use window.location.href because of specific use case</p>
  
  <p><strong>1.html</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;script src="jquery-2.1.1.min.js"&gt;&lt;/script&gt;
      &lt;script type = "text/javascript"&gt;
  
      $( document ).ready(function() {
          //$("#second")[0].click();
          document.getElementById("second").click(); 
      });
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;a href = "2.html" id="second"/&gt; click &lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I tried <strong>$("#second")[0].click()</strong> and <strong>document.getElementById("second").click()</strong>. Both works fine in desktop browsers. But in android Both doesn't seems to work. 
  Do we have any ways to achieve it ? Please Help</p>