Name
clientHeight, clientWidth — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
According to Microsoft’s developer documentation, these properties reflect the height and width (in pixels) of the element’s content. But see Section 9.2 at the beginning of this chapter for details.
Example
var midHeight = document.all.myTH.clientHeight/2
Value
Integer pixel value.
Default
None.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.