security reasons.
But how do I make it so you click a button for example, and chrome begins a file download, using modern pure JS?
Using a backend that supports download methods, like PHP, you can force any given URL to start the download prompt
Autodownload is a chrome thing
Also: <a download ... >
This is super easy with pure HTML. Please don't use PHP You can do like <a href="" download>
Обсуждают сегодня