3 ms·
It was definitely there three years ago. The trick is to create an <a> with the "download" attribute and set the URL to a data URI (or, if supported, use a blob
by Jasper_ 10y ago
It was definitely there three years ago. The trick is to create an <a> with the "download" attribute and set the URL to a data URI (or, if supported, use a blob and URL.createObjectURL). That will get you a download prompt.