nextElementSibling

nextElementSibling returns the first following sibling that is an element; otherwise null.

Syntax

element = node.nextElementSibling

Examples

1

2

3

4

Internal

previousElementSibling

External

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu