Horje
javascript download image Code Example
download image from url javascript
function download(source){
    const fileName = source.split('/').pop();
	var el = document.createElement("a");
	el.setAttribute("href", source);
	el.setAttribute("download", fileName);
	document.body.appendChild(el);
 	el.click();
	el.remove();
}
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();




Javascript

Related
js select div Code Example js select div Code Example
day array in javascript Code Example day array in javascript Code Example
move first element to last javascript Code Example move first element to last javascript Code Example
angular animation scale width and height Code Example angular animation scale width and height Code Example
agregar clase en jquery Code Example agregar clase en jquery Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7