Name
Document.createTextNode( ) — create a new Text node
Availability
DOM Level 1 Core
Synopsis
Text createTextNode(String data
);
Arguments
-
data
The content of the Text node.
Returns
A newly created Text node that represents the specified
data
string.
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.