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

HTML DOM Select form Property

Select form Property

Select Object Reference Select object


Definition and Usage

The form property returns a reference to the form element containing the drop-down list.

This attribute returns the form object.

Syntax

selectObject.form


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the form attribute


Example

Example

Display the id of the form containing the drop-down list:

Runoob Tutorial(runoob.com)

Select your favorite fruit:

    

Try it »


Select Object Reference Select object