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. The Macintosh
version of the browser interprets this to mean the amount of the
content that you can see at any one time. The important point is that
for key elements, such as the BODY
, the properties
mean different things and can disrupt cross-platform operation.
Example
var midPoint = document.all.myLegend.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.