Tuesday, 17 September 2013

How to get browser 's download dialog given the url of file

How to get browser 's download dialog given the url of file

My requirement is to download a file when "Download" button is clicked.
Service is giving me the url of the file. I used window.location but it is
replacing my page. I just want the default download dialog provided by
browser. How do I get that? I am getting a string (file location) from
service, not the file. I am using jQuery.

No comments:

Post a Comment