GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

HTMLFormElement: autocomplete property

HTML DOM

HTML DOM

The **`autocomplete`** property of the HTMLFormElement interface indicates whether the value of the form's controls can be automatically completed by the browser. It reflects the form element's [`autocomplete`](/docs/Web/HTML/Reference/Attributes/autocomplete) attribute.

## Value

A string; the value `"off"` if explicitly set to `"off"`, and otherwise always `"on"`.

## Examples

```js
const formElement = document.getElementById("name");
console.log(formElement.autocomplete);
```

## Specifications

## Browser compatibility

## See also

- form
- HTML [`autocomplete`](/docs/Web/HTML/Reference/Attributes/autocomplete) attribute
- ARIA [`aria-autocomplete`](/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-autocomplete) attribute
- [Turning off autocompletion](/docs/Web/Security/Practical_implementation_guides/Turning_off_form_autocompletion)

source: MDN Web Docs mirror · page

Cite this

"HTMLFormElement: autocomplete property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/autocomplete

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·