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 attached to the Text or Comment node. |
Throw
If the node called by this method is read-only, it will throw a DOMException with code NO_MODIFICATION_ALLOWED_ERR DOMException Exception.
Description
This method converts the string string Attach to the end of the data attribute of the node.
Related Pages
XML DOM Reference Manual:Text.appendData()
XML DOM Reference Manual:Comment.appendData()