Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

createComment method

Creates a comment object with the specified data.

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

 

Syntax

var ppRetNode = document.createComment(bstrdata);

Parameters

bstrdata [in]

Type: String

A String that sets the comment object's data.

Return value

Type: IHTMLDOMNode

Returns a reference to the new comment object.

Standards information

See also

document

 

 

Show: