HTML5 download Attribute
download attribute. The
download attribute allows you to set a separate file download name than the actual link endpoint itself.
download attribute on a link...
<!-- will download as "expenses.pdf" --> <a href="/files/adlafjlxjewfasd89asd8f.pdf" download="expenses.pdf">Download Your Expense Report</a>
... read the whole story at davidwalsh.name.