title: How to open pdf in new window in safari iOS
body: <p>the code below creating an anchor that perform download funcionality on click:</p>
  
  <pre><code>let a = document.createElement('a');
  a.href = `data:application/pdf;base64,${base64str}`;
  a.download = fileName;
  a.target = '_blank';
  document.body.appendChild(a);
  a.click();
  document.body.removeChild(a);
  </code></pre>
  
  <p>works as expected in Chrome, IE, firefox.
  in safari iOS, the file is not getting downloaded but opened in the same tab.
  tested on iPhone 7 13.3.1</p>
  
  <p>how to perform downloading or at least open the pdf in another tab?</p>