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

previousElementSibling

Description

The previousElementSibling of NonDocumentTypeChildNode for JS returns the first preceding sibling that is an element; otherwise null.

Syntax

element = node.previousElementSibling

Examples

1 · element

2 · element

3 · innerHTML

4 · tagName

nextElementSibling

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu