Bounding Client Rect 'bottom' : Bounding Client « Style Layout « JavaScript DHTML






Bounding Client Rect 'bottom'

    
<html>
<body>
<p id="myP" style="background-color:black; color:white; width:200;">
This is some sample text.
</p>
<button onclick="alert(myP.getBoundingClientRect().bottom);">Bottom</button>
</body>
</html>

    
      
      








Related examples in the same category

1.Bounding Client Rect 'top' Example
2.Bounding Client Rect 'left' Example
3.Bounding Client Rect 'right' Example