title: Download a file by changing window.location w/ Safari
body: <p>I have an offline html file that generates and saves a CSV by setting window.location to </p>
  
  <pre><code>data:text/csv;base64,Intfa2V5fSIsInt...
  </code></pre>
  
  <p>However, in Safari this just brings up the CSV in the browser.</p>
  
  <p>Setting the url to:</p>
  
  <pre><code>data:application/csv;base64,Intfa2V5fSIsInt...
  </code></pre>
  
  <p>forces Safari to download the file - but it gets a generic file name of just 'Unknown-3'.  Is there a way to specify the file name?</p>