Back to Content

HTMLAreaElement: download property

files/en-us/web/api/htmlareaelement/download/index.md

latest535 B
Original Source

{{APIRef("HTML DOM")}}

The download property of the {{domxref("HTMLAreaElement")}} interface is a string 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 adjust it accordingly.

It reflects the download attribute of the {{HTMLElement("area")}} element.

Value

A string.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}