XML DOM setStart() method

Definition and usage

The setStart() method sets the starting point of the range.

Syntax:

setStart(refNode,offset)

Parameters

Parameters Description
refNode The node containing the new starting point.
offset The new starting point is in refNode at the position in

thrown

The reasons why this method throws exceptions are Range.setEnd() The method is the same, and the exceptions thrown are also the same.

Description

This method sets the start point of the range to the value specified by the startContainer property and startOffset property.