X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

XML DOM - The Comment Object


Examples

Try it Yourself - Examples

The examples below use the XML file books.xml.
An external JavaScript is used to load the XML file.

createComment() - Create a comment node


The Comment object

The Comment object represents the content of comment nodes in a document.

Comment Object Properties

Property Description
data Sets or returns the text of this node
length Returns the length of the text of this node

Comment Object Methods

Property Description
appendData() Appends data to the node
deleteData() Deletes data from the node
insertData() Inserts data into the node
replaceData() Replaces data in the node
substringData() Extracts data from the node


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook