javascript document createComment( )

createComment( ) NN 6 IE 5(Mac)/6(Win) DOM 1

createComment("commentText")

Generates in memory an instance of a comment node (Comment object with a nodeValue of 8). A typical sequence is to create the Comment node, then insert it into the desired location of the document tree via any node's appendChild( ) or insertBefore( ) method. Only partially implemented in IE 5/Mac.

 
Parameters
 
commentText

String containing the comment data.

 
Returned Value

Comment node object reference.


588,Nickname,Homepage or email,Comments here,Add comment