The cloneNode() method clones a specific element and returns it
cloneNode()
Example
local elm = document.querySelector("body").querySelector("#clone") local clonedElm = document.cloneNode(elm) document.querySelector("body").appendChild(clonedElm)
Last updated 1 year ago
Was this helpful?