createElementcreateElement*
*Contents  *Index  *Topic Contents
*Previous Topic: createCaption
*Next Topic: createRange

createElement

Description

Creates an instance of the element object for the specified tag. Only new IMG and OPTION elements can be created. Before they can be used, new objects must be explicitly added to their respective collections.

Syntax

element = object.createElement(tag)

ParameterDescription
tag (String) Tag specifier.

Return Value

Returns an element object.

Applies To

document

See Also

add


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