scrollMaxX property (window)
Returns the maximum number of pixels by which the contents of the document can be scrolled horizontally.
The returned value is the difference between the total (scrollWidth) and the visible (clientWidth) width of the contents of the document.
You can get the number of pixels by which the contents of the document are scrolled to left with the pageXOffset, scrollX and scrollLeft 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 scrollMaxX property:
Did you find this example helpful?
User Contributed Comments