addadd*
*Contents  *Index  *Topic Contents
*Previous Topic: Methods
*Next Topic: addChannel

add

Description

Adds an element to the collection.

Before you can add an element to a collection, you must create it first by using the createElement method.

Syntax

object.add(element [, index])

ParameterDescription
element Element object to add.
index Optional. Number specifying the position within the collection to place the element. If no value is given, the method places the element at the end of the collection.

Return Value

No return value.

Remarks

For the areas object, this method can only be used on the object after the page has been loaded. If the method is applied "inline," a run-time error will occur.

Applies To

areas, options

See Also

remove


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.