Color autocomplete Property
Example
Set autocomplete to off:
var x = document.getElementById("myColor").autocomplete;
Try it Yourself »
Definition and Usage
The autocomplete property sets or returns the value of the autocomplete attribute of a color picker.
When autocomplete is on, the browser automatically complete values based on values that the user has entered before.
Browser Support
| Property | |||||
|---|---|---|---|---|---|
| autocomplete | Yes | 10.0 | Yes | Yes | Yes |
Note: The <input type="color"> element does not show any colorpicker in Internet Explorer and Safari.
Syntax
Return the autocomplete property:
colorObject.autocomplete
Set the autocomplete property:
colorObject.autocomplete = true|false
Property Values
| Value | Description |
|---|---|
| on | Default. The browser will automatically complete values based on values that the user has used before |
| off | The browser does not automatically complete entries |
Technical Details
| Return Value: | A String, representing the state of autocompletion |
|---|
Related Pages
HTML reference: HTML <input> autocomplete attribute
❮ Color Object

