Radio : HTMLElement
Return to: HTML DOM Level 0 index

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
Creates a new instance of a Radio object.
Show Details 3.0+ 1.0+ 2.0+ no no no

Radio() : Radio

Creates a new instance of a Radio object.

Returns
Radio

Visibility
internal

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+
See Also

HTMLElement.onclick|EventListener|EventTarget|MouseEvent

Availability

JavaScript 1.0

checked : Function
Whether or not the radio button is currently checked.
No Details 3.0+ 1.0+ 2.0+ 7.0+ 5.0+ 1.0+
defaultChecked : Boolean
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 : String
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

text_javascript aptana_docs