Availability: |
| ||||||
Property/method value type: | undefined | ||||||
JavaScript syntax: | - | myWindow.scroll(aPositionX, aPositionY) | |||||
- | scroll(aPositionX, aPositionY) | ||||||
Argument list: | aPositionX | A position in pixels | |||||
aPositionY | A position in pixels | ||||||
Deprecated: | JavaScript - 1.2 |
You should use the scrollTo() method in preference to this one as it is now deprecated.
Vertical scrolling in Netscape Navigator moves in the reverse direction to MSIE. Because the standard is ambiguous on this point, you will need to check this on other implementations.
Netscape Navigator will only permit a document to be scrolled if the scroll bars are active and visible. MSIE does not care whether the scroll bars are visible or whether you are scrolling the document past its end point. Netscape Navigator however allows layers to be scrolled anyhow.
See also: | Frame object, Window object, Window.scrollBy(), Window.scrollTo() |
Prev | Home | Next |
Window.screenY | Up | Window.scrollbars |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |