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. Setting these properties does not appear to visually impact the display of content in the MARQUEE element.

Example

document.all.myBanner.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.