Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript download image

var a = $("<a>").attr("href", "http://i.stack.imgur.com/L8rHf.png").attr("download", "img.png").appendTo("body");

a[0].click();

a.remove();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #download #image
ADD COMMENT
Topic
Name
5+4 =