Javascript Reference
Categories: OBJECT

javascript OBJECT getBoundingClientRect( )

@March 15, 2008, 1:22 a.m.
getBoundingClientRect( )Firefox/Netscape/NN n/a IE 5(Win) Chrome/Safari/DOM n/a  

  

Returns an IE TextRectangle object that describes the rectangular space occupied by the current element (including non-text elements, such as images). The rectangle (which has properties for top, right, bottom, and left coordinates) is as wide as the widest point of the content (e.g, the longest line of a word-wrapped paragraph) and as tall as the sum of all content. To obtain measures of rectangles for individual lines of a text element, see the getClientRects( ) method.

 
Parameters

None.

 
Returned Value

TextRectangle object.


Powered by Linode.