Im editing a HTML book not coded by me from the start. Images are set as div backgrounds with base64 format like this one
<div class="cntnt" style="background-image: url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD......
the question is : how can I (with javascript) make downloading that image possible by clicking that div or any other button?