title: Running JNLP on Page Load
body: <p>I want to run a JNLP file on page load using javascript.</p>
  
  <p>Internet explorer runs JNLP without any problem, but Chrome downloads JNLP. </p>
  
  <p>But if I click on link manually chrome runs JNLP, also.</p>
  
  <p><strong>Is there a solution to run a JNLP on page load without any manual click, on chrome?</strong></p>
  
  <p>Here is my example code:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;head&gt;
  &lt;script&gt;
      function codeAddress() {
          document.getElementById('mylink').click();
      }
  
      window.onload = codeAddress;        
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;a id="mylink" target="_self" href="http://localhost/projects/myjnlp.jnlp"&gt;go&lt;/a&gt;
  &lt;/body&gt;
  </code></pre>