-
Notifications
You must be signed in to change notification settings - Fork 22.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New page: htmlformelement.autocomplete
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: "HTMLFormElement: autocomplete property" | ||
short-title: autocomplete | ||
slug: Web/API/HTMLFormElement/autocomplete | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLFormElement.autocomplete | ||
--- | ||
|
||
{{ APIRef("HTML DOM") }} | ||
|
||
The **`autocomplete`** property of the {{DOMxRef("HTMLFormElement")}} interface indicates whether the value of the form's controls can be automatically completed by the browser. It reflects the {{htmlelement("form")}} element's [`autocomplete`](/en-US/docs/Web/HTML/Attributes/autocomplete) attribute. | ||
|
||
## Value | ||
|
||
A string; the value of the `autocomplete` attribute (`"on"`, `"off"`), or the empty string `""` if unspecified. | ||
|
||
## Examples | ||
|
||
```js | ||
const formElement = document.getElementById("name"); | ||
console.log(formElement.autocomplete); | ||
``` | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{HTMLElement("form")}} | ||
- HTML [`autocomplete`](/en-US/docs/Web/HTML/Attributes/autocomplete) attribute | ||
- ARIA [`aria-autocomplete`](/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-autocomplete) attribute | ||
- [Turning off autocompletion](/en-US/docs/Web/Security/Practical_implementation_guides/Turning_off_form_autocompletion) |