Creates a Text object with the specified text.

[VBScript]
Public Function CreateTextNode( _
   ByVal data As String _
) As Text
[JScript]
public function CreateTextNode(
   data : String
) : Text;

Parameters

data
The text for the Text node.

Return Value

The new Text node.

Remarks

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.

See Also

Document Object | Document Members | DOM Namespace