The download attribute allows for the downloaded filename to be specified to be something different than the name in the url.
This is available only on the A
tag when an href
attribute is already specified and works similarly to setting the header as:
Content-Disposition: attachment; filename="filename.pdf"
NOTE: this is not currently available in IE, Edge(prior to 13) or IOS Safari.
References: