This read-only integer value tells you how far the window content has been scrolled in the vertical direction.
Note that Netscape Navigator is somewhat picky about whether you can even scroll the content of a window. It insists on the scrollbars being visible even though the content may not cause them to be active.
Netscape Navigator 4 will let you scroll layers and Netscape 6 provides sufficient DOM standardized CSS positioning controls to satisfy your requirements.
In the MSIE browser, a similar value is available in the document.body.scrollTop property.
Prev | Home | Next |
Window.pageXOffset | Up | Window.parent |
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. |