javascript TextRectangle bottom, left, right, top

bottom, left, right, topNN n/a IE 5(Win) 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.


2126,Nickname,Homepage or email,Comments here,Add comment