Creates a text string from the specified value. Syntax oTextNode = document.createTextNode( [sText]) Parameters
Return Value
Example <SCRIPT> function fnChangeNode(){ var oTextNode = document.createTextNode("New Text"); var oReplaceNode = oSpan.childNodes(0); oReplaceNode.replaceNode(oTextNode); } </SCRIPT> <SPAN ID="oSpan" onclick="fnChangeNode()"> Original Text </SPAN> Standards Information
Applies To
See Also createElement, About the W3C Document Object Model |