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

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -