I want to download a HTML file on click of a span.
I am not using any anchor tag in this. I want to do this on simple click of a span.
Url is having .html extension. And the url to html file is on another domain(Amazon s3)
How to achieve this in JavaScript, as in anchor tag it would have been easy where I would have written attribute 'download' in it.