ZVON > References > DOM2 Reference

appendData (method )

Owning interface and usage:  
CharacterData.appendData(arg)

Member of these other interfaces:  
CDATASection, Comment, Text

Description:  
Append the string to the end of the character data of the node.

Parameters:  
DOMString arg  -  The DOMString to append.

Returns:  
nothing

Exceptions:  
DOMException NO_MODIFICATION_ALLOWED_ERR
Raised if this node is readonly.

Note:  
Upon success, data provides access to the concatenation of data and the DOMString specified.


Example:
JavaScript:
  var txt = document.createTextNode('AAA-BBB');
  txt.appendData('CCC');
  var output = txt.data;
Output:
desired your browser
AAA-BBBCCC