Sets or gets the value of a TextNode object.
Syntax
[ sData = ] TextNode.data
Possible Values
sDataString that specifies or receives the value of the TextNode.The property is read/write. The property has no default value.
The property is read/write. The property has no default value.
Example
This example uses the data property to change the value of a text node. <SCRIPT> function fnChangeValue(){ var var oNewText.data="Create Data"; oNode.replaceNode(oNewText); oNode.data = "New Node Value"; } </SCRIPT> <UL ID = oList > <LI>Start Here </UL>
This example uses the data property to change the value of a text node.
<SCRIPT> function fnChangeValue(){ var var oNewText.data="Create Data"; oNode.replaceNode(oNewText); oNode.data = "New Node Value"; } </SCRIPT> <UL ID = oList > <LI>Start Here </UL>
Standards Information
This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
TextNode
Experience Silverlight enabled quickstart tutorials, video training, showcases & more.
By clicking "Click to Install" you accept the Silverlight License Agreement .Silverlight updates automatically, learn more .