HTMLAnchorElement.download

The HTMLAnchorElement.download property Is a DOMString indicating that the linked resource is intended to be downloaded rather than displayed in the browser. The value represent the proposed name of the file. If the name is not a valid filename of the underlying OS, browser will adapt it.

Syntax

var dnload = anchorElt.download;
anchorElt.download = dnload;

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'download' in that specification.
Living Standard No change from Document Object Model (DOM) Level 2 HTML Specification

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support141320 ?15 ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support1414 Yes ? ? ? Yes

Document Tags and Contributors

 Contributors to this page: fscholz, jpmedley
 Last updated by: fscholz,