Document.CreateElement Method |
Creates an Element object.
[VBScript] Public Function CreateElement( _ ByVal tagName As String _ ) As Element
[JScript] public function CreateElement( tagName : String ) : Element;
The new Element.
Although this method creates the new object in the context of the document, it does not automatically add the new object to the document tree. To add the new object, you must explicitly call one of the node insert methods.