title: Can I use jQuery to create a file (and its content) dynamically?
body: <p>Here is my HTML code,</p>
  
  <pre><code>&lt;ul&gt;
    &lt;li&gt; Download &lt;a href="#"&gt;file1&lt;/a&gt; &lt;/li&gt;
    &lt;li&gt; Download &lt;a href="#"&gt;file2&lt;/a&gt; &lt;/li&gt;
    &lt;li&gt; Download &lt;a href="#"&gt;file3&lt;/a&gt; &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>I want to create something like <code>"href=filename.txt"</code>.  The <code>"filename"</code> of the text file and its content needs to be created dynamically based on which  tag was clicked.</p>
  
  <p>I use a web API to get data in JSON format and hence believe security should not be an issue.</p>