Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js clone element

// Syntax:
let newClone = node.cloneNode([deep])

// Example:
let p = document.getElementById("para1")
let p_prime = p.cloneNode(true)
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #clone #element
ADD COMMENT
Topic
Name
8+7 =