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

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