Download text file from link

(file: some/other/page/companysecrets.pdf text: Download our company secrets). Copy. Download link for an external file.

You can't. From https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#Attributes. download. This attribute only works for same-origin  In this tutorial you'll learn how to download files like images, word or PDF you can just create a hyperlink pointing to that file, and whenever a user click on the link, Image Gallery