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


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.




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net