createComment method
Creates a comment object with the specified data.
![]() |
Syntax
var ppRetNode = document.createComment(bstrdata);Parameters
- bstrdata [in]
-
C++ A String that sets the data property. JavaScript A String that sets the comment object's data. - ppRetNode [out, retval]
-
C++ A pointer variable that receives an IHTMLCommentElement2 pointer. JavaScript Returns 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
Show:
