HTMLAnchorElement: download property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("HTML DOM")}}

The **download** property of the {{domxref("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](/en-US/docs/Web/HTML/Reference/Elements/a#download) attribute of the {{HTMLElement("a")}} element.

See the HTML [<a>](/en-US/docs/Web/HTML/Reference/Elements/a#download) element reference for details about the attribute.

Value

A string.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • HTML [download](/en-US/docs/Web/HTML/Reference/Elements/a#download) attribute