Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.