Sams Teach Yourself HTML, CSS and JavaScript All in One (Gal Zentner's Library) by Julie C. Meloni

Sams Teach Yourself HTML, CSS and JavaScript All in One (Gal Zentner's Library) by Julie C. Meloni

Author:Julie C. Meloni
Language: eng
Format: epub
Publisher: Sams
Published: 2012-06-13T16:00:00+00:00


Node Methods

Each node within a page has a number of methods available. Which of these are valid depends on the node’s position in the page and whether it has parent or child nodes. These include the following:

• appendChild(new) appends the specified new node after all of the object’s existing nodes.

• insertBefore(new, old) inserts the specified new child node before the specified old child node, which must already exist.

• replaceChild(new, old) replaces the specified old child node with a new node.

• removeChild(node) removes a child node from the object’s set of children.

• hasChildNodes() returns a Boolean value of true if the object has one or more child nodes or false if it has none.

• cloneNode() creates a copy of an existing node. If a parameter of true is supplied, the copy will also include any child nodes of the original node.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.