|
The cloneNode() method create a copy of a specified node.
The cloneNode() method has the parameter (true or false). This
parameter indicate if the cloned node should include all
attributes and child nodes of the original node.
The following code fragment copies the first <book> node and
then add the copy to the end of the node list:
|