TOC PREV NEXT INDEX

domref



createTextNode


Creates a new Text node.

Syntax

text = document.createTextNode(data)
 

Parameters

text is a text node.

data is a string containing the data to be put in the text node.

Example

t = document.createTextNode("Plain Old Text.");
 
p = document.getElementById("firstP");
 
p.appendChild(t);
 

Notes

None.

Specification

createTextNode
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX