previousSibling

The previousSibling JS Node returns the previous sibling.

Syntax

node.previousSibling

Examples

1

2

nextSibling

baseURI

childNodes

cloneNode

compareDocumentPosition

contains

firstChild

getRootNode

hasChildNodes

isConnected

isEqualNode

lastChild

nextSibling

nodeName

nodeType

normalize

ownerDocument

parentElement

parentNode

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu