JavaScript: The Definitive Guide

25.42. CharacterData.appendData( ): append a string to a Text or Comment node

DOM Level 1 Core:

25.42.1. Synopsis

void appendData(String arg) tHRows DOMException;

25.42.1.1. Arguments

arg

The string to be appended to the Text or Comment node.

25.42.1.2. Throws

This method throws a DOMException with a code of NO_MODIFICATION_ALLOWED_ERR if called on a node that is read-only.

25.42.2. Description

This method appends the string arg to the end of the data property for this node.

Категории