Input Email autocomplete property
Example
Set the autocomplete property of the email field to off (disabled):
document.getElementById(
"myEmail"
).autocomplete =
"off"
;
Try it »
Definition and usage
The autocomplete property is used to set or return the value of the autocomplete attribute of the email field.
When autocomplete is on (enabled), the browser completes the input automatically based on values the user has entered before.
Tip: In some browsers you may need to activate the autocomplete function to achieve this effect.
Browser support

All major browsers support the autocomplete property.
**Note:** Opera 12 and earlier versions do not support the autocomplete property.
Note: Internet Explorer 9 and earlier IE versions, as well as the Safari browser, do not support .
Syntax
Return the autocomplete property:
emailObject
.autocomplete
Set the autocomplete property:
emailObject
.autocomplete="on|off"
Attribute values
| Value | Description |
|---|---|
| on | Default. Enables the autocomplete input feature based on values previously entered by the user. |
| off | Disables the autocomplete feature; the user must enter the value manually each time. |
Technical Details
| Return Value: | String, indicating the autocomplete state. |
|---|
More examples
Example
Get the autocomplete state:
var
x = document.getElementById(
"myEmail"
).autocomplete;
x The output result is:
on
Try it »
Related pages
HTML Reference Manual: HTML autocomplete property
Input Email Object