title: IE 11: How to Open JavaScript genereted file without Open/Save dialog?
body: <p>I'm working on an Angular application and one of features is to open PDF and JSON files returned from a ReST service. Actually, a file opening must be performed without any Open/Save dialog.</p>
  
  <p>This works in Google Chrome using code below and "Always open with...":</p>
  
  <pre><code>var a = document.createElement("a");
  a.href = URL.createObjectURL(blobObject);
  a.download = fileName;
  a.dataset['downloadurl'] = [mimeType, a.download, a.href].join(':');
  a.target = "_blank";
  document.body.appendChild(a);
  a.click();
  </code></pre>
  
  <p>Problem is Internet Explorer - IE11 doesn't support PDF like data-url. And because of that I was implemented msSaveOrOpenBlob():</p>
  
  <pre><code>navigator.msSaveOrOpenBlob(blobObject, fileName);
  </code></pre>
  
  <p>But problem is that IE always shows Open/Save dialog, so there is no direct file opening. This works with download file using , but not with msSaveOrOpenBlob().</p>
  
  <p>Any ideas to solve this?</p>