I have a requirement to download a file on clicking a link on Page. On button click, called a download js file from [HERE](http://danml.com/download.html).

But this is not working fine with mimetype application/pdf. Any help?

Can try [HERE](http://pagedemos.com/sxks39b72aqb/1) standalone demo for testing download.js.

```
download("hello world", "dlText.pdf", "application/pdf");

```