Text Object
The appendData() method adds a string at the end of a text node.
| Parameter | Description |
|---|---|
| string | Required. The string to add to the text node |
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc() and appends text to the first <title> element:
Output:
Text Object
Your message has been sent to W3Schools.