Graphical radio button in a group of radio buttons.
Browser/User Agent Support
| IE | Mozilla | Netscape | Opera | Safari | 3.0+ | 1.0+ | 2.0+ | no | no |
|---|
Constructors
| Constructor | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Creates a new instance of a Radio object. | 3.0+ | 1.0+ | 2.0+ | no | no |
Properties
| Property | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Event handler for when a user clicks on the radio button. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Whether or not the radio button is currently checked. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Whether or not the radio button is checked by default. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Value of the radio button that is sent when the form is submitted. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
References
Checkbox | Form | Input | HTMLInputElement
Availability
JavaScript 1.0 | enhanced in JavaScript 1.1
Constructor Detail
Property Detail
static Function onclick
Event handler for when a user clicks on the radio button.
- See Also
HTMLElement.onclick | EventListener | EventTarget | MouseEvent
- Availability
JavaScript 1.0
Function checked
Whether or not the radio button is currently checked.
Boolean defaultChecked
Whether or not the radio button is checked by default.
String value
Value of the radio button that is sent when the form is submitted.
