hasChildNodes

The hasChildNodes JS Node returns whether node has children.

Syntax

node.hasChildNodes()

Examples

1 · true

2 · false

baseURI

childNodes

cloneNode

compareDocumentPosition

contains

firstChild

getRootNode

isConnected

isEqualNode

lastChild

nextSibling

nodeName

nodeType

normalize

ownerDocument

parentElement

parentNode

previousSibling

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu