A TextRange may describe several discontinuous blocks of text. Each one of these would be bounded by a separate client rectangle.
This method evaluates the current start and end points of the text range and works out the pixel locations of a bounding rectangle in the display screen for each of the different text areas. These are then used to instantiate a textRectangle object which is added to a collection.
The collection of individual client textRectangle objects is then returned to the caller.
See also: | textRectangle object |
Prev | Home | Next |
TextRange.getBoundingClientRect() | Up | TextRange.htmlText |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |