title: Generating/downloading a csv in ie9
body: <p>So, I'm trying to dynamically create and download a csv in IE 9 , using just javascript. </p>
  
  <p>Currently, I use something like this:</p>
  
  <pre><code>var oWin = window.open("about:blank", "_blank");
  oWin.document.write(csvData);
  oWin.document.close();
  var success = oWin.document.execCommand('SaveAs', true, 'MyDownload.csv');
  oWin.close();
  </code></pre>
  
  <p>Unfortunately, if the system setting of 'hide extensions of known file types' in the file browser is checked, the extension doesn't appear in the download box, so it shows as MyDownload instead of MyDownload.csv and doesn't open correctly.</p>
  
  <p>Does anyone know a better way to go about this?</p>