Graphical radio button in a group of radio buttons.
Platform Support
| IE | Mozilla | Netscape | Opera | Chrome | Safari | 3.0+ | 1.0+ | 2.0+ | no | no | no |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Chrome | Safari | ||
|---|---|---|---|---|---|---|---|---|---|
|
Radio Constructor() : Radio
Creates a new instance of a Radio object.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | no | no | no | ||
Radio() : RadioCreates a new instance of a Radio object. Returns
|
|||||||||
Properties
| Property | Action | IE | Mozilla | Netscape | Opera | Chrome | Safari |
|---|---|---|---|---|---|---|---|
|
onclick
: Function
Event handler for when a user clicks on the radio button.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 5.0+ | 1.0+ |
|
|||||||
|
Whether or not the radio button is currently checked.
|
No Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 5.0+ | 1.0+ |
|
|
|||||||
|
Whether or not the radio button is checked by default.
|
No Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 5.0+ | 1.0+ |
|
|
|||||||
|
Value of the radio button that is sent when the form is submitted.
|
No Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 5.0+ | 1.0+ |
|
|
|||||||
References
Checkbox|Form|Input|HTMLInputElement
Availability
JavaScript 1.0|enhanced in JavaScript 1.1