Programmer's Guide > Interfaces > W3C Document interface > createComment method
  
createComment method
Creates a Comment node given the specified string.
createComment(data )
Parameters
Stringdata
The data for the node.
Returns
Comment. The new Comment object.