Radio : HTMLElement

Graphical radio button in a group of radio buttons.

Browser/User Agent Support

IEMozillaNetscapeOperaSafari
3.0+1.0+2.0+nono

Constructors

ConstructorIEMozillaNetscapeOperaSafari
Creates a new instance of a Radio object.
3.0+1.0+2.0+nono
 

Properties

PropertyIEMozillaNetscapeOperaSafari
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

Radio Radio()

Creates a new instance of a Radio object.

Visibility
internal

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.