title: addition Blank window opened with pdf file in javascript
body: <p>I want to open a pdf file when page is getting loaded (onload), I done it through calling javascript function on  onload action ,I can open a pdf in adobe reader ,but issue is I got new Blank browser-window in addition to adobe file(opened in adobe not in browser)</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;script type="text/javascript"&gt;
      function windoeOpen() {
          var myWindow = window.open(" ", "windowname", "width=200, height=100");
          myWindow.location.href = "file:///F:/pdf2.pdf";
      }
  &lt;/script&gt;
  
  &lt;body onload="windoeOpen()"&gt;
    &lt;code&gt;
    ........
   &lt;/code&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>please give me suggestion how can I close the additional browser blank window.</p>
  
  <p>Note:</p>
  
  <p>but if I open pdf in browser ,it works fine(opened in browser as expected) no addition blank browser.</p>