title: Why saveAs() in JavaScript does not work for me?
body: <p>I need to save a graph to a JSON file. Before doing that, I wrote a very simple HTML/JavaScript to test it out (just use a simple string for the JSON). </p>
  
  <p>Based on the suggestion in a Stack Overflow posting, I use saveAs() method. But it looks like saveAs() does not work and no file is created. I am using Internet Explorer and Window 10. </p>
  
  <p>In order to debug it, I inserted 3 window.alert() calls. The first 2 window.alert() calls pop up correctly, however, the 3rd window.alert() call does not show up at all. So I am afraid that the code is aborted at the saveAs() call.</p>
  
  <p>The following is my code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Save&lt;/title&gt;
  &lt;script&gt;
  
  function save() 
  { 
  window.alert("I am here 1");
  var jsonBlob = new Blob([JSON.stringify("kiki")], { type: 'application/javascript;charset=utf-8' });
  window.alert("I am here 2");
  saveAs(jsonBlob, "testout.json");
  window.alert("I am here 3");
  } 
  
  &lt;/script&gt; 
  &lt;/head&gt;
  &lt;body&gt; 
  &lt;form name="myform"&gt; 
  &lt;input type="button" onClick="save();" value="Save"&gt;
  &lt;/form&gt; 
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I am wondering why saveAs() does not work for me? Am I missing something here? Do I need to add something to my computer in order to use saveAs() method?</p>
  
  <p>Thank you very much for your advice!</p>