DOM:window.scrollMaxX
From MDC
Contents |
[edit] Summary
Returns the maximum number of pixels that the document can be scrolled horizontally.
[edit] Syntax
xpix = window.scrollMaxX
[edit] Parameters
xpixis the number of pixels.
[edit] Example
// Scroll to most right of the page var maxX = window.scrollMaxX; window.scrollTo(maxX, 0);
[edit] Notes
Use this property to get the total document width, which is equivalent to window.innerWidth + window.scrollMaxX.
See also window.scrollMaxY.
[edit] Specification
DOM Level 0. Not part of specification.