make a link download a file (rather than opening it)

11:04 pm, April 3, 2018
if you want a link to download the file rather than opening it in a tab this is what you use to tell the browser that the file should prompt for a download when pressed.

Code

html
css
js
scripts

Download & Run

Download File Run Demo Re-load Preview

Preview

mDchG