Windows apps
Collapse the table of content
Expand the table of content
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]
C++A String that sets the data property.
JavaScriptA String that sets the comment object's data.
ppRetNode [out, retval]
C++A pointer variable that receives an IHTMLCommentElement2 pointer.
JavaScriptReturns a reference to the new comment object.

Return value

Type: IHTMLDOMNode

Returns a reference to the new comment object.A pointer variable that receives an IHTMLCommentElement2 pointer.

Standards information

Remarks

createComment was introduced in Microsoft Internet Explorer 6.

See also

document

 

 

Show:
© 2017 Microsoft