'createComment()' Example : createComment « Javascript Methods « JavaScript Reference

'createComment()' Example

    
<html>
<body>
Body content.
<script language="JavaScript">
    document.createComment("This is the comment text");
</script>
</body>
</html>

    
      
      








Related examples in the same category

1.'createComment()' Syntax, Parameters and Note
2.'createComment()' is applied to