checkbox (JavaScript 1.0)

A box that the user can check. For groups of checkboxes, users may select multiple checkboxes.

Properties & Events

KeyDescriptionAvailability
checkedReturns true if the checkbox is checked. False if the checkbox is not checked.
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 7.0
defaultcheckedReturns true if the checkbox is checked by default.
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 7.0
valueSpecifies a string value for when the checkbox is checked.
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 7.0
onclickEvent handler for when the checkbox is clicked.
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 7.0

Result from the Online TryIt-Editor
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 4.0

Examples having uses of: 'checkbox'