title: Prompting user to save file using a 'Save-as' dialog?
body: <p>I currently have this code:</p>
  
  <pre><code>function download(filename, text) {
          var pom = document.createElement('a');
          pom.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
          pom.setAttribute('download', filename);
          pom.click();
  }
  
  download('test.html', string);
  </code></pre>
  
  <p>The <code>string</code> contains a lot of html code that gets written in an .html file.<br>
  The above code is working perfectly:
  On a button click, the browser (chrome) automatically downloads an html file with the string content written in it. </p>
  
  <p>Now, what I want to do is, instead of chrome downloading the file automatically, it should open a "save-as" dialog box and ask the user the location and name of the file, and then download it to that location. </p>
  
  <p>A quick simple reply would be really appreciated.</p>