DekGenius.com
Team LiB   Previous Section   Next Section
Range.setStart( ) set the start point of a range

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.

    Team LiB   Previous Section   Next Section