title: Is there a way to stop IE10/IE11 from showing open or save prompt
body: <p>I am downloading files from server using javascript blob something like</p>
  
  <pre><code>let blob = new Blob([resposne['_body']], { type: contentType });
  if (navigator.msSaveBlob) {
      navigator.msSaveOrOpenBlob(blob, fileName); // in case of IE
  } else {
      let objectUrl = window.URL.createObjectURL(blob);
      window.open(objectUrl);
  }
  </code></pre>
  
  <p>The code above works fine but in IE it shows a dialog:</p>
  
  <p><a href="https://i.stack.imgur.com/carV0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/carV0.png" alt="prompt"></a></p>
  
  <p>Also if I put a direct pdf link in the href tag then it also works fine. So it looks like there is no problem with the adobe plugin. </p>
  
  <p>What I want is to directly open the file instead of showing this prompt. I tried <a href="http://9to5it.com/internet-explorer-disable-do-you-want-to-open-or-save-this-file-prompt/" rel="nofollow noreferrer">Registry hack as suggested here</a> but did not have any luck. Any idea how to achieve this? </p>