title: How to save file from textarea in Javascript with a name?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2897619/using-html5-javascript-to-generate-and-save-a-file">Using HTML5/Javascript to generate and save a file</a>  </p>
  </blockquote>
  
  
  
  <p>I want a client side HTML/JS solution to solve this problem - I have a user-edittable textarea A, a textfield B and a button C. When user clicks on C, she gets a file download with name equal to B.value and contents equal to A.value. I looked at <a href="https://stackoverflow.com/questions/10018954/">this</a> but it does not specify how to set the filename and I don't want a Flash solution like <a href="https://github.com/dcneiner/Downloadify" rel="nofollow noreferrer">this</a>. We can assume users are on latest Chrome browser (it's a little tool for my team)</p>