HTMLInputElement: autocomplete property - Web APIs | MDN
Value
A string; the value of the autocomplete attribute ("on", "off", a <token-list>), or the empty string "" if unspecified.
Examples
js
const inputElement = document.getElementById("name");
console.log(inputElement.autocomplete);
Specifications
| Specification |
|---|
| HTML # dom-fe-autocomplete |
Browser compatibility
See also
<input>HTMLInputElement.value- HTML
autocompleteattribute - ARIA
aria-autocompleteattribute - Turning off autocompletion