Java Reference
In-Depth Information
Figure 6.6. Insert before
Notice that even though the newPara paragraph had already been placed in the document,
this method can still be used on it. This means that the appendChild() and inser-
tBefore() methods can be used to move markup that already exists in the DOM. This is
because a reference to a single DOM element can only exist once in the page, so if you use
multiple inserts and appends, only the last one will have an effect. If an element is required
Search WWH ::




Custom Search