cloneNode
The cloneNode() method clones the current element and returns it
Example
local elm = document.querySelector("body").querySelector("#clone").cloneNode()
document.querySelector("body").appendChild(elm)Last updated
Was this helpful?
The cloneNode() method clones the current element and returns it
Example
local elm = document.querySelector("body").querySelector("#clone").cloneNode()
document.querySelector("body").appendChild(elm)Last updated
Was this helpful?