jquery - how to download file from link contain image? -


i have link contain, such as:

<a id="clicklink" href="http://data.sinhvienit.net/2012/t12/img/sinhvienit.net---1302911-9xnacom29112012-11.jpg">download</a> 

i want download file when click link, not open new tab , display image. how it?

that going require content-disposition header sent server.
chrome supports download attribute on anchors there equivalent client side solution on other browsers.


Comments

Popular posts from this blog

How to set a border for android Imageview in Longpress? -

java - Cast from Object to List<String>: CastClassException -