nodeValue property

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

Gets or sets the value of a node.

Syntax

HRESULT value = object.put_nodeValue(VARIANT v);HRESULT value = object.get_nodeValue(VARIANT* p);

Property values

Type: VARIANT

the node value or null.

Standards information

Remarks

If the object is a TextNode object, the IHTMLDOMNode::nodeValue property returns a string that represents the text that the node contains.

You cannot use expressions to change the IHTMLDOMNode::nodeValue of a TextNode object.

If the object is an attribute object retrieved from the attributes collection, the IHTMLDOMNode::nodeValue property returns the value of the attribute if it has been specified, or null otherwise.

If the object is an element, the IHTMLDOMNode::nodeValue returns null. Use the IHTMLDOMNode::nodeName property to determine the element name.

See also

Reference

IHTMLDOMAttribute2::value

Conceptual

About the W3C Document Object Model

 

 

Build date: 6/12/2012