HTMLFormElement: autocomplete プロパティ
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
autocomplete
は HTMLFormElement
インターフェイスのプロパティで、ブラウザーによってこのフォームのコントロールの値が自動的に補完できるかどうかを示します。これは、<form>
要素の autocomplete
属性を反映します。
値
文字列です。 "off"
の値は明示的に "off"
が設定された場合で、それ以外は常に "on"
です。
例
js
const formElement = document.getElementById("name");
console.log(formElement.autocomplete);
仕様書
Specification |
---|
HTML # dom-form-autocomplete |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
autocomplete |
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.
関連情報
<form>
- HTML の
autocomplete
属性 - ARIA の
aria-autocomplete
属性 - 自動補完の無効化