title: Javascript - Input button won't work in Android, everything else works
body: <p>I have a form. In this form there is an input area. When the user selects the input they are taken to one of three places depending on which device they are using. android - google play store, iphone - itunes store, desktop - itunes web browser. I am able to retrieve the iphone and desktop states, however Android doesn't seem to work on the form tag with an action attribute. The links work fine. Not sure what the issue is. Summary -- when I click the input button, nothing happens, no pop ups, nothing on my android. Also when I place the url of <a href="http://www.google.com" rel="nofollow noreferrer">http://www.google.com</a> into the action attribute of form it works correctly. Something is happening in between. </p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
  &lt;meta name='viewport' content='initial-scale=1'&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class='main'&gt;
  
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;form id="store-link"  &gt;
      &lt;input type='submit'  value='Download'/&gt;        
  &lt;/form&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;br/&gt;
  &lt;/div&gt;
  &lt;div class='footer'&gt;
  &lt;p&gt;footer&lt;/p&gt;
  
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;script&gt;
  
   var a = document.getElementById('store-link'); 
   if (navigator.userAgent.match(/Android/i)) {
   a.action = 'http://www.google.com';
   }
   if ((navigator.userAgent.match(/iPhone/i)) ||    (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))){
   a.action = 'itms://itunes.apple.com/us/app/peanuts-storygif-christmas/id1181016912?mt=8';
   }
  else {
  a.action = 'https://itunes.apple.com/us/app/peanuts-storygif-christmas/id1181016912?mt=8';
   }
  
  &lt;/script&gt;
   &lt;/html&gt;
  </code></pre>