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

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.