Share via


DesignerDocument.createElement Method

SharePoint Designer Developer Reference

Creates a new IHTMLElement object that represents an HTML element based on the specified argument.

Syntax

expression.createElement(eTag)

expression   Required. A variable that represents a DesignerDocument object.

Parameters

Name Required/Optional Data Type Description
eTag Required String A that represents the new HTML tag type.

Return Value
IHTMLElement

Remarks

Although you can use the createElement method to create any number of elements, you need to use the InsertAdjacentHTML method or the InnerHTML property to add the elements to a Web page. The exception is the AREA element, for which you use the Add method.

See Also