+ 7

How to add a direct download button for images on my web page ???

Images that we link to our web code are displayed there but how can we make it directly downloadable from our web code... Is it possible to create a download button which allows the viewers to directly download the content image ???

11th Oct 2018, 8:05 AM
Keshav Kishor Ram
3 ответов
+ 6
It's supported in modern browsers only (except IE). The following example is for an image that is present in a file. <a download="image_name" href="/path/to/image" title="Download image"> <img alt="Image_Name" src="/path/to/image"> </a>
11th Oct 2018, 9:00 AM
777
777 - avatar
+ 9
<a download=”file”></a>
11th Oct 2018, 8:52 AM
Toni Isotalo
Toni Isotalo - avatar
+ 5
Thanks to all
11th Oct 2018, 12:48 PM
Keshav Kishor Ram