HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
The following code fragment loads "books.xml", clones the first <book> node and then adds it to the end of the node list
The cloneNode() method creates an exact copy of a specified node.
This method returns the cloned node.
cloneNode(include_all)
Parameter | Description |
---|---|
include_all | Required. If the Boolean parameter is set to true, the cloned node clones all the child nodes of the original node as well |
❮ Element Object