Methods and Properties of the Radio Object : RadioButton Radio « Form Control « JavaScript DHTML






Methods and Properties of the Radio Object

  
Method
blur()            Removes focus from the Radio object.
click()           Simulates a mouse click on the button.
focus()           Sets the focus to a button.
handleEvent()     Invokes the default handler for the specified event. 


Property
checked          Specifies whether a button is checked or unchecked.
defaultChecked    Refers to the checked attribute of the HTML 'input' tag.
form             Refers to the Form object that contains the Radio object.
name             Refers to the name attribute of the HTML 'input' tag.
type             Refers to the type attribute of the HTML 'input' tag.
value            Refers to the value attribute of the HTML 'input' tag.
           
         
    
  








Related examples in the same category

1.'defaultChecked' Example
2.Radio Button status Example
3.Check a Radio Button
4.Radio buttons in a form
5.Using the onPropertyChange Property
6.Radio action
7.Determining the Value of the Selected Radio Button
8.Scripting a Group of Radio Objects
9.Finding the Selected Button in a Radio Group
10.An onClick event Handler for Radio Buttons
11.Get the radio button selection
12.Get the select radio button and its value
13.Cycle the selected radio buttons