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

HTML DOM Select name Property

Select name Property

Select Object Reference Select object


Definition and Usage

The name property sets or returns the name of the drop-down list.

Syntax

Set the name attribute:

selectObject.name=

name

Return the name attribute:

selectObject.name


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the name property.


Example

Example

The following example displays the name of the drop-down list:

Runoob Tutorial(runoob.com)

Try it »


Select Object Reference Select object