Checkbox type attribute
Checkbox Object
Definition and Usage
The type attribute returns the form type of the element.
For a checkbox object, this attribute always returns "checkbox".
Syntax
checkboxObject.type
Browser support





All major browsers support the type property.
Example
Example
The example below returns the form element type of the checkbox:
Try it »
Checkbox Object