Mega Code Archive

 
Categories / JavaScript DHTML / Style Layout
 

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>