The Intrinsic CheckBox Control

The intrinsic CheckBox control implements a simple check box by using the

<INPUT> tag. When a form containing CheckBox controls is submitted to the server, only the information from the selected check boxes is submitted.

Attributes

NAME A string representing the name of the CheckBox control
VALUE A string representing the value of the control when submitted (by default, this value is ON)
CHECKED An option that causes the check box to be checked by default

Events

OnClick Fires whenever the control is checked
OnFocus Fires when the control receives the focus

Syntax

<INPUT TYPE="CHECKBOX" [NAME="string"] [VALUE="string"] [CHECKED] [OnClick="subroutine"][OnFocus=" subroutine"]>

Example

<FORM>
<INPUT TYPE="CHECKBOX" NAME="chkOne" VALUE="Checked" CHECKED>
</FORM> 

© 1996 by Scot Hillier. All rights reserved.