Click to return to the Reusing Browser Technology home page    
IHTMLDocument3::createDoc...     IHTMLDocument3::detachEve...     IHTMLDocument3 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLDocument3::createTextNode Method


Creates a new text node and returns the IHTMLDOMNode pointer.

Syntax

HRESULT createTextNode(
    BSTR text,
    IHTMLDOMNode **newTextNode
);

Parameters

text
String (BSTR) that specifies the text of the new node.
newTextNode
Address of a pointer to an IHTMLDOMNode interface that returns the newly created text node.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

This method always returns S_OK; check the rootElem returned. If NULL is returned, the method has failed to create a new text node.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.