Document.createComment() (Method)

Creates a new comment node object containing the data passed in the string argument.

Availability:

DOM level - 1
JavaScript - 1.5
Netscape - 6.0
Property/method value type:COMMENT object
JavaScript syntax:NmyDocument.createComment(someData)
Argument list:someDataThe content of the comment block

See also:COMMENT object