Newbie here.
I am learning from here and I'm facing a problem.
The original script works fine in the demo.
HTML:
<!DOCTYPE html>
<html>
<body>
<h1>The a download attribute</h1>
<p>Click on the image to download it:<p>
<a href="/images/myw3schoolsimage.jpg" download>
<img src="/images/myw3schoolsimage.jpg" alt="W3Schools" width="104" height="142">
</a>
<p><b>Note:</b> The download attribute is not supported in IE or Edge (prior version 18), or in Safari (prior version 10.1).</p>
</body>
</html>
But if I change /images/myw3schoolsimage.jpg
to https://stackoverflow.com/questions/156686/how-to-start-automatic-download-of-a-file-in-internet-explorer.html
, it goes to the website.
But I want it to download the webpage as HTML file when the URL is clicked.
Something like when you right-click a link on a page and choose "download linked file" in safari.
I am using safari 13.0.3 by the way. How can I do that?