Latest web development tutorials

HTML DOM Input Color form properties

Input Color Object Reference Input Color Object

Examples

Returns <input type = "color"> element in the form id:

var x = document.getElementById("myColor").form.id;
x The output is:
myForm

try it"

Definition and Usage

form property returns form form includes a reference to the color picker.

Returns the form object attribute success.

Note: This property is read-only attribute.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support form property.

Note: Internet Explorer and Safari browsers do not support the <input type = "color"> element.


grammar

colorObject .form

technical details

return value: Color Picker contains a reference to the form elements. If the color picker is not in the form, return null.


related articles

HTML Reference Manual: HTML <form> tag


Input Color Object Reference Input Color Object