Document.createTextNode() (Method)

A means of constructing a new textNode object.


DOM level - 1
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:textNode object
JavaScript syntax:-myDocument.createTextNode(someData)
Argument list:someDataThe textual content of the node

You may need to create additional text nodes to be placed between other objects you create when modifying a document object model. Text nodes are placed interstitially between object nodes within a document hierarchy.

See also:Hierarchy of objects, textNode object