TOC PREV NEXT INDEX

Put your logo here!


createTextNode


what is does

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

core


mozilla.org | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX