input type=radio HTML Object
The input type=radio object creates a radio button control object. It is used to limit a user's selection to a single value within a set of values.
Properties
Property | Data type | Access | Description |
---|---|---|---|
accesskey | String | Read/write | Sets or retrieves the number associated with the accesskey attribute.
Note Supported only for devices running Windows Mobile 2002 software or later. |
checked | Boolean | Read/write | Sets or retrieves the state of the input type=radio control. The only possible values are True or False. |
disabled | Boolean | Read/write | Sets or retrieves the value that indicates whether the user can interact with the object.
Note Supported only for devices running Windows Mobile 2002 software or later. |
defaultChecked | Boolean | Read/write
Note Read-only for devices running Windows Mobile 2000 software. |
Specifies whether or not the input type=radio control is checked by default. |
form | Object | Read-only | Retrieves a reference to the form that the object is embedded in.
Note Supported only for devices running Windows Mobile 2002 software or later. |
name | String | Read-only | Sets or retrieves the name of the input type=radio control.
Note Supported only for devices running Windows Mobile 2002 software or later. |
indeterminate | Read/write | Sets or retrieves whether the user has changed the status of a radio control.
Note Supported only for devices running Windows Mobile 2002 software or later. |
|
type | String | Read-only | Always returns — radio. |
value | String | Read/write | Sets or retrieves value of the input type=radio control. The default value is "on". |
Events
Event | Description |
---|---|
onclick | Occurs when the user selects the radio button element and only when the user presses the pen down on then lifts up the pen over the same radio button. You can specify a special handler for this event. |
onblur | Occurs when an element loses focus either by the pointing device or by keypad navigation.
Note Supported only for devices running Windows Mobile 2002 software or later. |
onfocus | Occurs when an element receives focus either by the pointing device or by tabbing navigation.
Note Supported only for devices running Windows Mobile 2002 software or later. |
Methods
Method | Syntax | Description |
---|---|---|
click | radio.click | Simulates clicking the input type=radio control by causing the onclick event to occur. |
focus | focus.click | Sets focus to the input type=radio control. |
Requirements
Pocket PC: Windows Mobile 2000 and later
OS Versions: Windows CE 3.0 and later
Send feedback on this topic to the authors.
© 2005 Microsoft Corporation. All rights reserved.