Name
Document.createTextNode( ): create a new Text node â DOM Level 1 Core:
Synopsis
Text createTextNode(Stringdata
);
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, 5th 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.