From an answer to Force a browser to save file as after clicking link:
<a href="https://stackoverflow.com/questions/3802510/path/to/file" download>Click here to download</a>
More Related Contents:
- How to Use Content-disposition for force a file to download to the hard drive?
- vs
- Force browser to clear cache
- href image link download on click
- How can I create download link in HTML?
- Display PDF within web browser
- vs.
- Provide an image for WhatsApp link sharing
- HTML5 download attribute not working when downloading from another server, even when Access-Control-Allow-Origin is set to all (*)
- Calling wkhtmltopdf to generate PDF from HTML
- Which are the standard W3C meta tags?
- How to display PDF file in HTML?
- Using iText to convert HTML to PDF
- What is initial scale, user-scalable, minimum-scale, maximum-scale attribute in meta tag?
- How to set name of file downloaded from browser?
- How to embed a PDF viewer in a page?
- How to embed a PDF?
- Download textarea contents as a file using only Javascript (no server-side)
- What happens if the meta tags are present in the document body?
- Hiding the toolbars surrounding an embedded pdf?
- Arabic characters from html content to pdf using iText
- How to specify parameters to google chrome adobe pdf viewer?
- File opens instead of downloading in internet explorer in a href link
- how to show pdf file in ionic app with out download
- Zoom to fit: PDF Embedded in HTML
- IE8 embedded PDF iframe
- How to force fully download txt file on link?
- How is the meta viewport tag used, and what does it do?
- download webpage and dependencies, including css images [closed]
- iPad layout scales up when rotating from portrait to landscape