HTMLAnchorElement: download プロパティ
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2019.
HTMLAnchorElement.download
プロパティは、文字列で、リンク先リソースをブラウザーに表示するのではなくダウンロードすることを意図していることを示します。値がある場合は、ローカルファイルシステムのリソースのラベル付けに使用する既定のファイル名を指定します。 基になる OS で名前が有効なファイル名でない場合は、ブラウザーが調整します。
メモ: この値はダウンロードに使われないかもしれません。 この値により、ダウンロードが行われるかどうかを判別することはできません。
値
文字列です。
仕様書
Specification |
---|
HTML # dom-a-download |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
download |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.