I would like to start download of an image on click of a link.
<a id="downloadImage" href="imagepath">Click here to download</a>
I know we can use download attribute of HTML5 (Force a browser to save file as after clicking link) but I would not like to use it as it will not be working in older versions of browsers. I did tried the method here: Download File Using Javascript/jQuery but it opens the image in the iframe .
Can anybody help me to force a browser to download an image onclick of a link using jquery?