2.4.1 add

Adds an element to the areas, controlRange, or options collection.

The add method extends the HTMLAreasCollection interface.


oElement of type HTMLElement

Required. Element that specifies the element to add to the collection.

oBefore of type any

Optional. Object that specifies an element before which to insert, or an Integer that specifies the index position in the collection where the element is placed. If no value is given, the object is appended to the end of the collection.

In IE7 Mode, oBefore only accepts an Integer.

No Return Value

No JScript Error