The Intrinsic Radio Control

The intrinsic Radio control allows a user to select one choice from a number of options. Radio controls are also called option buttons. Radio controls can be grouped by using the same NAME attribute.

Attributes

NAME A string representing the name of the Radio control
VALUE A string representing the value of the control when submitted (each radio button should have a unique value)
CHECKED An option that causes the Radio control to be selected by default

Events

OnClick Fires when the control is clicked
OnFocus Fires when the control receives the focus

Syntax

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

Example

<FORM>
<INPUT TYPE="RADIO" NAME="OPTIONS" VALUE="One" CHECKED>One
<INPUT TYPE="RADIO" NAME="OPTIONS" VALUE="Two">Two
<INPUT TYPE="RADIO" NAME="OPTIONS" VALUE="Three">Three
</FORM> 

© 1996 by Scot Hillier. All rights reserved.