Next / Previous / Contents / TCC Help System / NM Tech homepage

5.2. Node.cloneNode()

Use this method to create a duplicate of a node N:


The returned value is the newly created copy.

If the deep argument is false, you get just a copy of N. If deep is true, you get a copy of N, complete with copies of all its descendant nodes attached.