Option() (Constructor)

An Option object constructor.


JavaScript - 1.1
Netscape - 3.0
JavaScript syntax:Nnew Option
Nnew Option()
Nnew Option(aValue)
Argument list:aValueAn initial value for the new option object

You can dynamically create new option objects and add them to the options array belonging to a Select object in a form.

See also:Constructor function, constructor property, Garbage collection, Memory leak, Reference counting, Select.options[]