JavaScript: The Definitive Guide

25.62. Document.createComment( ): create a new Comment node

DOM Level 1 Core:

25.62.1. Synopsis

Comment createComment(String data);

25.62.1.1. Arguments

data

The text of the Comment node to create.

25.62.1.2. Returns

A newly created Comment node, with the specified data as its text.

Категории