HBCMS更多的中文手册参考:

data参数属性

DHTML文档教程

Sets or retrieves the value of a textnode object.

dhtml语法

textnode.data [ = sdata ]

dhtml可能的值

sDataString that specifies or receives the value of the TextNode.

The property is read/write. The property has no default value.

DHTML代码范例

This example uses the data property to change the value of a text node.

<SCRIPT>
function fnChangeValue(){
var oNode = oList.firstChild.childNodes(0);
var oNewText = document.createTextNode();
oNewText.data="Create Data";
oNode.replaceNode(oNewText);
oNode.data = "New Node Value";
}
</SCRIPT>
<UL ID = oList onclick = "fnChangeValue()">
<LI>Start Here
</UL>

是否符合公共标准

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

TextNode