OffsetHeight: It is the property that helps to measure the visible height of an element in terms of pixels including the CSS properties like element visible content, vertical padding, border, and scrollbar but not top and bottom margin.
offsetHeight = Visible content + padding + border + scrollbar
ClientHeight: It is the property that helps to measure the inner height of an element in terms of pixels including the CSS properties like padding but not the horizontal scrollbar height, border, or margin.
clientHeight = Visible content + padding
- Before Click on the Button:
- After Click on the Button:
- HTML | DOM clientHeight Property
- HTML | DOM offsetHeight Property
- Difference between node.js require and ES6 import and export
- Difference Between DOS and Windows
- Difference Between Apache Kafka and Apache Flume
- Difference Between HTML and ASP
- Difference between ASP and ASP.NET
- Difference between Preemptive Priority based and Non-preemptive Priority based CPU scheduling algorithms
- What is the Difference between Website and Web Portal
- Difference between Web Scraping and Web Crawling
- Difference between try-catch and if-else statements in PHP
- Difference between Algorithm, Pseudocode and Program
- Difference between Dropbox and OneDrive
- Difference between Applets and Servlets
- Difference between fundamental data types and derived data types
- Difference between Deterministic and Non-deterministic Algorithms
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.