The best HTML DOM Input Color objects Tutorial In 2024, In this tutorial you can learn Input Color Object,Input Color object properties,Standard properties and events,related articles,
Input Color object represents use type = "color" attribute of the HTML <input> elements.
Note: Internet Explorer or Safari browser does not support <input> element using type = "color" property.
You can use getElementById () function to access using type = "color" attribute of the <input> element:
Tip: You can also form elements to access the Input Color collection of objects.
You can use document.createElement () method to create using the type = "color" attribute of the <input> element:
Attributes | description |
---|---|
autocomplete | Sets or returns the color picker's autocomplete attribute values. |
autofocus | Sets or returns the pick-up when the page loads whether the color gets focus. |
defaultValue | Sets or returns the default value of the Color Picker. |
disabled | Sets or returns the color picker is available. |
form | Return form form contains a reference to the color picker. |
list | Returns Color Picker datalist reference. |
name | Sets or returns the color picker name attribute value. |
type | Back Color Picker form element type. |
value | Sets or returns the color picker's value property values. |
Input Color objects also supports standard attributes and events .
HTML Tutorial: HTML Forms
HTML Reference Manual: HTML <the INPUT> tag
HTML Reference Manual: HTML <the INPUT> of the type attribute