Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
nodeValue

nodeValue property

Gets or sets the value of a node.

Syntax

HRESULT value = object.put_nodeValue( v);HRESULT value = object.get_nodeValue(* 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

 

 

Community Additions

ADD
Show:
© 2015 Microsoft