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

HTML DOM Radio form Property

Radio form Property

Radio Object Reference Radio object


Definition and Usage

The form attribute returns a reference to the form that contains the button.

On success, this property returns a form object.

Syntax

radioObject.form


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the form attribute


Example

Example

The following example returns the id of the form to which the radio button belongs:

Runoob Tutorial(runoob.com)

Which color do you prefer?

Red

Blue

Green

Try it »


Radio Object Reference Radio object