ZVON > References > DOM1 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.


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