XML DOM setEndBefore() method

Definition and usage

The setEndBefore() method ends the range before the specified node.

Syntax:

setEndBefore(refNode)

Parameters

Parameters Description
refNode A node, the end point of the range to be set is located before the node.

thrown

This method will be thrown in the same environment as Range.setEndAfter() methodThe same exceptions are thrown in the same environment.

Description

This method will set the end point of the range to the specified refNode Position before the node.