JavaScript Reference/Javascript Methods/createComment
"createComment()" Example
<html>
<body>
Body content.
<script language="JavaScript">
document.createComment("This is the comment text");
</script>
</body>
</html>
"createComment()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |document |
+----------------+--------------------------------------------------------------+
"createComment()" Syntax, Parameters and Note
Note:
This method creates a <comment> element.
Syntax:
document.createComment(param1)
Parameters:
param1 Required; the text of the comment.