JavaScript Reference/Javascript Methods/createComment
Версия от 18:30, 25 мая 2010; (обсуждение)
"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.