title: Mac safari open a URL in new tab/window using javascript
body: <p>The requirement is I get URL of excel file in webservice response. I want to open this URL in new tab/window using javascript.</p>
  
  <pre><code>window.open(url, '_blank');
  </code></pre>
  
  <p>doesn't work in mac safari.</p>
  
  <p>I also tried creating <code>&lt;a&gt;</code> with target="_blank" and trigger click.But it didn't work with Mac safari.</p>
  
  <p>Is there any way to achieve the requirement?
  Open the excel file in some specific div will also serve if it is possible.</p>
  
  <p>Thanks.</p>