ZVON > References > DOM2 Reference

createComment (method )

Owning interface and usage:  
Document.createComment(data)

Member of these other interfaces:  
none

Description:  
Creates a Comment node given the specified string.

Parameters:  
DOMString data  -  The data for the node.

Returns:  
Comment -  The new Comment object.

Exceptions:  
none


Example:
JavaScript:
  var comm = document.createComment('This is some comment.');
  var output1 = comm.nodeType;
  var output2 = comm.data;
Output:
desired your browser
output1: 8
output2: This is some comment.



_____________________________________________
Reference Search | Sitemap | XML Glossary       ZVON | Systinet




Related sites:
  • dotNet Slackers - Your latest resource for ASP.NET
  • Dotnet Spider - Outsourcing and Offshore software development in India
  • XML - Xselerator, XSL Editor, BizTalk Utilities, XML Tutorials, Learn XML
  • Planet Source Code - The largest public source code database on the Internet
answering service water softener MSN Alojamiento Web UNLIMITED Web Hosting by HostDepartment
VoIP Internettelefonie Hosted Exchange, SDSL VoIP Internettelefonie AT VoIP Internettelefonie DE