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 for the exceptions thrown by this method are Range.setEnd() The method is the same, and the exceptions thrown are also the same.
Description
This method will set the start point of the range to the value specified by the startContainer property and startOffset property.