Creates a comment object with the specified data.
Syntax
oComment = document.createComment(sData)
Parameters
sData Required. A String that sets the comment object's data.
Return Value
Returns a reference to the new comment object.
Remarks
createComment was introduced in Microsoft Internet Explorer 6.
Standards Information
This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
document
Experience Silverlight enabled quickstart tutorials, video training, showcases & more.
By clicking "Click to Install" you accept the Silverlight License Agreement .Silverlight updates automatically, learn more .