scrollMaxY property (window)
Returns the maximum number of pixels by which the contents of the document can be scrolled vertically.
The returned value is the difference between the total (scrollHeight) and the visible (clientHeight) height of the contents of the document.
You can get the number of pixels by which the contents of the document are scrolled upward with the pageYOffset, scrollY and scrollTop properties.To scroll the contents of the document, use the scrollTo or scrollBy method.
You can find the related objects in the Supported by objects section below.
This property is read-only.
Integer that represents the maximum amount, in pixels.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the scrollMaxY property:
Did you find this example helpful?
User Contributed Comments