createComment method
Creates an IHTMLCommentElement2 interface with the specified IHTMLObjectElement4::data.
![]() |
Syntax
HRESULT retVal = object.createComment(bstrdata, ppRetNode);
Parameters
- bstrdata [in]
-
Type: BSTR
A BSTR that sets the IHTMLObjectElement4::data property. - ppRetNode [out, retval]
-
Type: IHTMLDOMNode
A pointer variable that receives an IHTMLCommentElement2 pointer.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Standards information
Remarks
IHTMLDocument5::createComment was introduced in Microsoft Internet Explorer 6.
Show:
