Name
CharacterData.appendData( ) — append a string to a Text or Comment node
Availability
DOM Level 1 Core
Synopsis
void appendData(String arg
)
throws DOMException;
Arguments
-
arg
The string to be appended to the Text or Comment node.
Throws
This method throws a DOMException with a code
of
NO_MODIFICATION_ALLOWED_ERR
if called on a node
that is read-only.
Description
This method appends the string arg
to the
end of the data
property for this node.
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.