JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Checkbox.value Property

Name

Checkbox.value Property---value returned when form is submitted

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

checkbox.value

Description

value is a read/write string property of the Checkbox object. It specifies the text that is passed to the web server if the Checkbox is checked when the form is submitted. The initial value of value is specified by the VALUE attribute of the Checkbox's HTML <INPUT> tag. If no VALUE attribute is specified, then the default value string is "on".

Usage

Note that the value field does not specify whether or not the Checkbox is selected; the checked property specifies the current state of the Checkbox.

When defining a group of related checkboxes that share the same name, it is important that each be given a distinct value attribute.

See Also

"Checkbox"


Previous Home Next
Checkbox.type Book Index clearTimeout()

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell