Share via


createTextNode method

[This documentation is preliminary and is subject to change.]

Creates a text string from the specified value.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4

Syntax

IHTMLDOMNode retVal = object.createTextNode(text);

Standards information

Parameters

  • text [in, optional]
    Type: BSTR

    A BSTR that specifies the nodeValue property of the text node.

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

createElement

Conceptual

About the W3C Document Object Model

 

 

Build date: 1/26/2012