Download file from a href link, how? : <p>I have a a tag with href inside. When link is clicked a wanna download a file from my server. How can I do this. Here is my tag</p>

<pre><code>"    &lt;a href=\""+ downloadPDF("xxx","xxx") +"\"&gt;
</code></pre>

<p>downloadPDF is a method which starts the download, but how to make the href link call this method?</p>
