HTML DOM clientHeight Property Last Updated : 13 Jun, 2023 Comments Improve Suggest changes Like Article Like Report The DOM clientHeight property is used to return the viewable height of an element in terms of the pixel. It includes the measurement of the width of padding but does not include the margin, border, and scrollbar property for the measurement of the element width. This property only returns the actual height of an element that is viewable or visible to the user It is a read-only property. Syntax: element.clientHeight Return Value: It returns a numeric value which represent the viewable height of the element. Example: HTML <!DOCTYPE html> <html> <head> <title> HTML | DOM clientHeight Property </title> <style> h1 { color: green; font-size: 35px; } #GFG { height: 100px; width: 350px; padding: 40px; margin: 25px; border: 5px solid coral; background-color: green; } </style> </head> <body> <center> <h1>GeeksForGeeks</h1> <h2>DOM clientHeight Property </h2> <div id="GFG"> <p style="color:white;font-size:25px;"> GeeksforGeeks </p> <p id="sudo" style="color:white;"></p> </div> <button onclick="Geeks()">Submit</button> <script> function Geeks() { var w = document.getElementById("GFG"); // Using clientHeight property var x = "viewable Height is: " + w.clientHeight + "px<br>"; x += "viewable width is:: " + w.clientWidth + "px"; document.getElementById("sudo").innerHTML = x; } </script> </center> </body> </html> Output: Initially: After Click on the Button: Supported Browsers: The browser supported by DOM clientHeight property are listed below: Google Chrome 1.0 and aboveEdge 12.0 and aboveInternet Explorer 5.0 and aboveFirefox 1.0 and aboveOpera 8.0 and aboveSafari 3.0 and above Comment More infoAdvertise with us Next Article HTML DOM clientHeight Property M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-Property Similar Reads HTML DOM clientLeft Property The DOM clientLeft Property is used to return the width of the left border to an element in terms of pixel.It does not include the measurement of the width of the left padding or the left margin.It is read-only property. Syntax: element.clientLeft Return Value: It returns a numeric value which repre 1 min read HTML DOM clientWidth Property The DOM clientWidth Property is used to return the viewable width of a specific element including padding but excluding the measurement of margin, border, and scrollbar width. This property only returns the actual width of an element that is viewable or visible to the user. It is a read-only propert 1 min read HTML DOM clientTop Property The DOM clientTop Property is used to return the width of the top border to an element in terms of pixel.It does not include the measurement of the width of the top padding or the left margin.It is read-only property. Syntax: element.clientTop Return Value: It returns a numeric value which represent 2 min read HTML DOM Screen availHeight Property The Screen availHeight property is used for returning the height of the user's screen, in pixels. The value returned by the Screen availHeight property is excluding the interface features like the Windows Taskbar. Syntax : screen.availHeightReturn Values: It returns a numeric value which, representi 1 min read HTML | DOM embed height property The embed height property in HTML DOM is used to set or return the value of the height attribute. The height attribute defines the height of the embedded content in terms of pixels. Syntax:Return the height property:embedObject.heightSet the height property:embedObject.height = pixelsProperty Values 2 min read Like