I'm trying to build a download progress bar ( I download the canvas content as png image [converted from base64] ) and I have a little problem : Is there a way to track the download of a :
<a href="/images/myw3schoolsimage.jpg" download> ?
The available events for <a> , from : https://www.w3schools.com/tags/tag_a.asp
doesn't seem to help me.
I've tried to put the <a> tag inside a <div> tag and use the div's events like :
<div load="alert('test1');" progress="alert('test2');" >
<a href="/images/myw3schoolsimage.jpg" download>
<img src="/images/myw3schoolsimage.jpg" alt="W3Schools" width="104" height="142">
</a>
</div>
( https://en.wikipedia.org/wiki/DOM_events )
But didn't work.
So, to sum it up, what I'm trying to achieve by this is tracking the download after a click on a <a href="/images/myw3schoolsimage.jpg" download> so I can build a progress bar for the download
Any ideas?