Y
Hacker News
new
|
ask
|
show
|
jobs
by
wronghorse
2340 days ago
The <a> tag allows you to set a "download" attribute which will prompt the user to save the URL/file rather than navigating to it.
[1]
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a