title: How to open file automatically on page load?
body: <p>When i open a page with <code>.exe</code>, it doesn't open and download it, please help me! (this is my html content):</p>
  
  <pre><code>function load(){
      window.location.href = "//somewhere.abc/somefolder/something.exe";
  }
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>&lt;body onload="load()"&gt;
      &lt;center&gt;
          &lt;iframe data-aa='107686' src='https://ad.a-ads.com/107686?size=990x90' scrolling='no' style='width:990px; height:90px; border:0px; padding:0;overflow:hidden' allowtransparency='true' frameborder='0'&gt;&lt;/iframe&gt;
          &lt;h1&gt;Downloading.......&lt;/h1&gt;
          &lt;iframe data-aa='107687' src='https://ad.a-ads.com/107687?size=990x90' scrolling='no' style='width:990px; height:90px; border:0px; padding:0;overflow:hidden' allowtransparency='true' frameborder='0'&gt;&lt;/iframe&gt;
      &lt;/center&gt;
  &lt;/body&gt;
  </code></pre>