J
J
jle349252015-11-29 14:40:21
JavaScript
jle34925, 2015-11-29 14:40:21

How to force download images in javascript?

How to force download images in javascript?
There is such a design

<a onclick="download('http://www.priteshgupta.com/wp-content/uploads/2011/06/Blogger-Redirecting.png')" >download</a>

What code should be in the download function so that the picture starts downloading, and not just opens in the browser

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question