title: how to download server side file javascript
body: <p>We developing web sit.we have two textFiles in server <code>http://192.168.3.134:8080/Helphands/forTest1.txt</code>  and <code>http://192.168.3.134:8080/Helphands/forTest2.txt</code>  .We need is When we button click we need download <code>forTest1.txt</code> file and then count 1 write to <code>forTest2.txt</code>  Please guide me . We are new this</p>
  
  <p>We download like this </p>
  
  <pre><code>  &lt;/script&gt;
          &lt;a href="http://192.168.3.134:8080/Helphands/forTest1.txt" download&gt;
    aaaa
  &lt;/a&gt;
  </code></pre>
  
  <p>now we need count number of download that as to be sent to forTest2.txt</p>