Create a Comment : document « Javascript Objects « JavaScript DHTML






Create a Comment

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

    
      
        
  








Related examples in the same category

1.'expando' Example
2.Active Element
3.Document 'URLUnencoded' Example
4.'URL' Example
5.'write()' Example
6.'writeln()' Example
7.Execute Command
8.Document parentWindow
9.Document referrer
10.Document compatMode
11.Document design Mode
12.Document doctype
13.Document Domain
14.Document title Example
15.Document Link color
16.Use document.links collection
17.Print page out
18.Expose the prperties of Objects