XML DOM appendData() method

Definition and usage

The appendData() method appends the string to Text or Comment on the node.

Syntax:

CharacterData.appendData(string)
Parameter Description
string Required. The string to be appended to the Text or Comment node.

Throw

If the node that calls this method is read-only, it will throw a DOMException with the code NO_MODIFICATION_ALLOWED_ERR DOMException exception.

Description

This method converts the string string Appending to the end of the data attribute of the node.

Related pages

XML DOM reference manual:Text.appendData()

XML DOM reference manual:Comment.appendData()