---
title: getNextNode
name: node-functions-getnextnode
---

Get the next node in the tree. This is the next sibling, if there is one. Or, if there is no next sibling, a node further down in the tree.

-   Returns a node or null.

{% highlight js %}
const nextNode = node.getNextNode();
{% endhighlight %}
