Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 741
نمايش فراداده

Availability

DOM Level 2 Range

Synopsis

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

Arguments

refNode

The node that contains the new start point.

offset

The position of the new start point within refNode.

Throws

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

Description

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