createComment

The createComment JS Document returns a Comment node whose data is data.

Syntax

comment = document.createComment(data)

Parameters

data

An any type.

Examples

adoptNode

characterSet

compatMode

contentType

createCDATASection

createDocumentFragment

createElement

createElementNS

createProcessingInstruction

createTextNode

doctype

Document

documentElement

documentURI

exitPictureInPicture

getElementsByClassName

getElementsByTagName

getElementsByTagNameNS

implementation

importNode

pictureInPictureEnabled

URL

write

writeln

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu