HTML DOM Input Color type property
Examples
Back Color Picker form element type:
var x = document.getElementById("myColor").type;
x The output is: color
try it"
Definition and Usage
type attribute is used to return the Color Picker form element type.
Color Picker form usually returns "color".
Browser Support
All major browsers support the type attribute.
Note: Internet Explorer and Safari browsers do not support the <input type = "color"> element.
grammar
colorObject .type
technical details
return value: | String representing the Color Picker form type. |
---|
Input Color Object