1

I have a simple image loaded from the server:

<img src="mycoolimage.jpg" /> 

The image is already being shown in the browser. Is there any way using JavaScript to get the image to save to my file system without actually having to send another request to the server?

yesman
  • 7,165
  • 15
  • 52
  • 117

1 Answers1

0

Yes you can! But not on all browser ;) (

Have a look of the HTML5 doc for downloading client side W3C

<a href="yourImg" download>Download</a>

jsFiddle

Hope its help ;)

Yoplaboom
  • 554
  • 3
  • 13