go
Expand Minimize
This topic has not yet been rated - Rate this topic

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

 

 

Send comments about this topic to Microsoft

Build date: 11/27/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.