Export (0) Print
Expand All

createComment method

Creates an IHTMLCommentElement2 interface with the specified IHTMLObjectElement4::data.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4

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.

 

 

Community Additions

ADD
Show:
© 2014 Microsoft