The Wayback Machine - https://web.archive.org/web/20080901140510/http://developer.mozilla.org:80/en/DOM/window.scrollMaxY

Mozilla.com

  1. MDC
  2. Main Page
  3. DOM
  4. window.scrollMaxY

Some features of this site require JavaScript.

window.scrollMaxY

« Gecko DOM Reference

Summary

Returns the maximum number of pixels that the document can be scrolled vertically.

Syntax

ypix = window.scrollMaxY

Parameters

  • ypix is the number of pixels.

Example

// Scroll to the bottom of the page
 var maxY = window.scrollMaxY;
 window.scrollTo(0,maxY);

Notes

Use this property to get the total document height, which is equivalent to window.innerHeight + window.scrollMaxY.

See also window.scrollMaxX and window.scrollTo.

Specification

DOM Level 0. Not part of specification.

Languages

Page last modified 17:00, 28 Dec 2007 by Mgjbot

Files (0)

 
 
 
Morty Proxy This is a proxified and sanitized view of the page, visit original site.