Export (0) Print
Expand All
go
Expand Minimize

createCDATASection method

Creates a CDATA section that contains the specified text.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4Internet Explorer 9

 

Syntax

var newCDATASectionNode = document.createCDATASection(text);

Parameters

text [in]

Type: BSTR

A String value that contains the text to place inside the CDATA section.

newCDATASectionNode [out, retval]

Type: IHTMLDOMNode

Returns a reference to the CDATA section.

Return value

Type: IHTMLDOMNode

Returns a reference to the CDATA section.

Standards information

Remarks

The createCDATASection method is supported only for XML documents.

Examples

The following code example creates a CDATA section.


document.createCDATASection( "My content" ); 

See also

document

 

 

Show:
© 2014 Microsoft