Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
createCDATASection
go
Collapse the table of content
Expand the table of content

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:
© 2015 Microsoft