Name

scrollLeft, scrollTop — NN n/a IE 4 DOM n/a

Synopsis

Read/Write

The distance in pixels between the actual left or top edge of the element’s physical content and the left or top edge of the visible portion of the content. Changing these properties appears to have no visual effect in Internet Explorer.

Example

document.all.myLegend.scrollTop = 40

Value

Positive integer or zero.

Default

0

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.