JavaScript: The Definitive Guide

25.244. Range.setStart( ): set the start point of a range

DOM Level 2 Range

25.244.1. Synopsis

void setStart(Node refNode, long offset) throws RangeException, DOMException;

25.244.1.1. Arguments

refNode

The node that contains the new start point.

offset

The position of the new start point within refNode.

25.244.1.2. Throws

This method throws the same exceptions, for the same reasons, as Range.setEnd( ). See that reference page for details.

25.244.2. Description

This method sets the start point of this range by specifying the values of the startContainer and startOffset properties.

Категории