skip to contentstylized crane logoWhite Crane Education

Radio Objects

The radio type represents an HTML input object whose type attribute equals "radio":  

Events

onblur onclick ondblclick onfocus
onkeydown onkeypress onkeyup onmousedown
onmouseenter onmouseleave onmousemove onmouseout
onmouseover onmouseup

Properties

checked returns/sets whether or not the radio button is checked
defaultChecked returns/sets whether the radio button is checked by default
form returns a reference to the form to which the control belongs
name returns/sets the value of the checkbox's name attribute
type returns the value of the checkbox's type attribute
value returns/sets the value of the checkbox's value attribute

Methods

blur() takes the focus away from the checkbox
click() duplicates a mouse click on the checkbox including causing the onclick event to fire
focus() moves the focus to the checkbox