Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Radio type Property

Radio type Property

Radio Object Reference Radio object


Definition and Usage

The type property returns the form element type of the radio button.

For a radio button, this property is always "radio".

Syntax

radioObject.type


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the type property.


Example

Example

The following example returns the form element type of the radio button:

Runoob Tutorial(runoob.com)

Which color do you prefer?

Red

Blue

Green

Try it »


Radio Object Reference Radio object