TOC PREV NEXT INDEX

domref



window.pageXOffset


Gets the amount of content that has been hidden by scrolling to the right.

Syntax

hScroll = window.pageXOffset
 

Parameters

hScroll is the number of pixels scrolled as an integer.

Example

var hScroll = pageXOffset;
 
var vScroll = pageYOffset;
 

Notes

If the user has scrolled to the right and 200 pixels of the content is hidden by this, then the pageXOffset property returns 200.

window.pageYOffset

Specification

DOM Level 0. Not part of specification.
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX