Windows Dev Center

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]

Type: String

A String that sets the comment object's data.

Return value

Type: IHTMLDOMNode

Returns a reference to the new comment object.

Standards information

See also

document

 

 

Show:
© 2015 Microsoft