Programmer's Guide > Interfaces > W3C Document interface > createTextNode method
  
createTextNode method
Creates a Text node given the specified string.
createTextNode(data )
Parameters
Stringdata
The data for the node.
Returns
Text. The new Text object.