Javascript: serve text as a file
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/7717851/save-file-javascript-with-file-name">Save file Javascript with file name</a>  </p>
</blockquote>



<p>In javascript I have some data in a variable that I would like to give to the user as a file. How could I go about doing this?</p>

<p><strong>Duplicate</strong> of <a href="http://stackoverflow.com/questions/7717851/save-file-javascript-with-file-name">Save file Javascript with file name</a>, sorry.</p>
