HTMLInputElement: 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
は HTMLInputElement
インターフェイスのプロパティで、ブラウザーによってコントロールの値が自動的に補完できるかどうかを示します。これは、<input>
要素の autocomplete
属性を反映します。
値
文字列です。autocomplete
属性の値 ("on"
, "off"
, <token-list>
)、または指定されていない場合は空文字列 ""
です。
例
js
const inputElement = document.getElementById("name");
console.log(inputElement.autocomplete);
仕様書
Specification |
---|
HTML # dom-fe-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.
関連情報
<input>
HTMLInputElement.value
- HTML の
autocomplete
属性 - ARIA の
aria-autocomplete
属性 - 自動補完の無効化