Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

cloneNode

Description

The cloneNode of Node for JS returns a copy of node. If deep is true, the copy also includes the node’s descendants.

Syntax

node.cloneNode([deep = false])

Parameters

deep

Include the node’s descendants.

Examples

1 · void

2 · deep

baseURI

childNodes

compareDocumentPosition

contains

firstChild

getRootNode

hasChildNodes

isConnected

isEqualNode

lastChild

nextSibling

nodeName

nodeType

normalize

ownerDocument

parentElement

parentNode

previousSibling

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu