> For the complete documentation index, see [llms.txt](https://docs.novarietygames.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.novarietygames.com/websitecreator/luascript/dom/document/clonenode.md).

# cloneNode

The **`cloneNode()`** method clones a specific element and returns it

**Example**

```lua
local elm = document.querySelector("body").querySelector("#clone")
local clonedElm = document.cloneNode(elm)
document.querySelector("body").appendChild(clonedElm)
```
