createTextNode method
Creates a text string from the specified value.
![]() |
Syntax
IHTMLDOMNode retVal = object.createTextNode(text);
Parameters
- text [in, optional]
-
Type: BSTR
A BSTR that specifies the IHTMLDOMAttribute::nodeValue property of the text node.
Standards information
Remarks
This method always returns S_OK, so you must check the returned newTextNode value. If newTextNode is NULL, the method failed to create a new text node.
See also
- Reference
- IHTMLDocument2::createElement
- Conceptual
- About the W3C Document Object Model
Show:
