offsetHeight

An element property giving its rendered height in pixels, one of several geometry reads that make the browser finish any pending layout first.

In more detail

offsetWidth, offsetTop and getBoundingClientRect() behave the same way. Reading them is fine on its own but costly when mixed with style writes in a loop.

Related terms

Taught in

References