How do you create files with JavaScript?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6468517/force-download-of-datatext-plain-url">Force download of ‘data:text/plain’ URL</a><br>
  <a href="http://stackoverflow.com/questions/8355750/create-a-downloadable-link-from-a-vriable-in-javascript">Create a downloadable link from a vriable in javascript</a>  </p>
</blockquote>



<p>I have seen plugins that can create/generate files (.txt, .pdf, .vcard) and I'm not exactly sure how it's done. Are these done through Ajax? Or is there an object/method I'm missing?</p>
