Export (0) Print
Expand All
go
Expand Minimize

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