download
Widely available since 2022-03-19
The download
attribute for <a>
elements loads the target URL as a file to be saved, instead of navigating to it. An optional attribute value sets a default file name.
Learning resources on MDN
No MDN documentation found. You can search for the feature on MDN. If you believe that MDN has no documentation about this feature, you can open an issue on MDN's GitHub repository.Browser support (view on caniuse.com)
- Chrome 14 Released on 2011-09-16
- Chrome Android 18 Released on 2012-06-27
- Edge 18 Released on 2018-10-02
- Firefox 20 Released on 2013-04-02
- Firefox for Android 20 Released on 2013-04-02
- Safari 10.1 Released on 2017-03-27
- Safari on iOS 13 Released on 2019-09-19
Specifications
- HTML (#attr-hyperlink-download), from HTML Workstream (WHATWG).
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature