Name

scrollHeight, scrollWidth — NN n/a IE 4 DOM n/a

Synopsis

Read-only

The meaning of these two properties is ambiguous based on Microsoft’s description and the way they’re implemented in the Windows and Macintosh versions of Internet Explorer 4. My best guess is that these properties are intended to measure the height and width (in pixels) of the content of an element even when some of the content cannot be seen unless scrolled with scrollbars. These properties are not available in IE 4/Macintosh.

Example

var midPoint = document.all.myCaption.scrollHeight/2

Value

Positive integer or zero.

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.