Programmer's Guide > Interfaces > W3C Document interface > createCDATASection method
  
createCDATASection method
Creates a CDATASection node whose value is the specified string.
createCDATASection(data )
Parameters
Stringdata
The data for the CDATASection contents.
Returns
CDATASection. The new CDATASection object.
Throws
DOMException
NOT_SUPPORTED_ERR: Raised if this document is an HTML document.