How to create a downloadable file without using download tag in html?

I have been trying to create a downloadable image in my webpage using download attribute but i am unable to do it. As soon as i click on the image a new tab opens with the image. I have been using this code:- <a href="image.jpg" alt="Downloadable image" download="Image">Image to be downloaded</a> I am using Chrome Browser but according to one answer a_download is now no more available in Chrome 65 so then what's the new way??

1 answer