Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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 IHTMLDOMAttribute4::nodeValue property returns a string that represents the text that the node contains.

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

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

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

See also

Reference
IHTMLDOMAttribute4::value
Conceptual
About the W3C Document Object Model

 

 

Community Additions

ADD
Show:
© 2015 Microsoft