title: Launch download in the same tab without opening new tab or window in Javascript
body: <p>I am using this javascript function to launch download </p>
  
  <pre><code>function startDownload(url) {
     window.open(url, 'Download');
  }
  </code></pre>
  
  <p>It works, but i want to block any new tab or new window launch, thanks.</p>