Java Reference
In-Depth Information
Figure 6.5. Append child
The appendChild method is useful as you'll often want to add a new element to the
bottom of a list. But what if you want to place a new element in between two existing ele-
ments?
The insertBefore() will place a new element before another element in the markup.
It's important to note that this method is called on the parent node . It takes two parameters:
Search WWH ::




Custom Search