MDN self-hosted library · e01.org

HTMLAnchorElement: download property

HTML DOM

no runnable cells web-api-instance-property upstream source

HTML DOM

The download property of the HTMLAnchorElement interface is a string indicating that the linked resource is intended to be downloaded rather than displayed in the browser. The value, if any, represents the proposed name of the file. It reflects the download attribute of the a element.

See the HTML <a> element reference for details about the attribute.

Value

A string.

Specifications

Browser compatibility

See also