Javascript Reference
Categories: TextRectangle

javascript TextRectangle bottom, left, right, top

@March 15, 2008, 1:22 a.m.
bottom, left, right, topFirefox/Netscape/NN n/a IE 5(Win) Chrome/Safari/DOM n/a  

Read-only  

Return integer pixel values for the browser window coordinates of the rectangle edges. Note that these values are not relative to the page. Therefore, values change as the text holder scrolls.

 
Example
 
var rightMostEdge = document.getElementById("myP").getBoundingClientRect( ).right;
 
Value

Integer pixel measures

 
Default

None.


Powered by Linode.