'bottom' Example : bottom « Javascript Properties « JavaScript Reference

'bottom' Example

    
<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.'bottom' Syntax and Note
2.'bottom' is applied to