parentElement

The parentElement JS Node returns the parent element.

Syntax

node.parentElement

Examples

1 · body

2 · html

parentNode

baseURI

childNodes

cloneNode

compareDocumentPosition

contains

firstChild

getRootNode

hasChildNodes

isConnected

isEqualNode

lastChild

nextSibling

nodeName

nodeType

normalize

ownerDocument

parentNode

previousSibling

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu