Window. Size.js

Window cross-browser dimensions methods.

Note

The Functions in this script require an XHTML doctype.

License

MIT-style license.

Summary
Window. Size.jsWindow cross-browser dimensions methods.
windowCross browser methods to get various window dimensions.
Properties
getWidthReturns an integer representing the width of the browser window (without the scrollbar).
getHeightReturns an integer representing the height of the browser window (without the scrollbar).
getScrollWidthReturns an integer representing the scrollWidth of the window.
getScrollHeightReturns an integer representing the scrollHeight of the window.
getScrollLeftReturns an integer representing the scrollLeft of the window (the number of pixels the window has scrolled from the left).
getScrollTopReturns an integer representing the scrollTop of the window (the number of pixels the window has scrolled from the top).
getSizeSame as Element.getSize

window

Cross browser methods to get various window dimensions.  Warning: All these methods require that the browser operates in strict mode, not quirks mode.

Summary
Properties
getWidthReturns an integer representing the width of the browser window (without the scrollbar).
getHeightReturns an integer representing the height of the browser window (without the scrollbar).
getScrollWidthReturns an integer representing the scrollWidth of the window.
getScrollHeightReturns an integer representing the scrollHeight of the window.
getScrollLeftReturns an integer representing the scrollLeft of the window (the number of pixels the window has scrolled from the left).
getScrollTopReturns an integer representing the scrollTop of the window (the number of pixels the window has scrolled from the top).
getSizeSame as Element.getSize

Properties

getWidth

Returns an integer representing the width of the browser window (without the scrollbar).

getHeight

Returns an integer representing the height of the browser window (without the scrollbar).

getScrollWidth

Returns an integer representing the scrollWidth of the window.  This value is equal to or bigger than getWidth.

See Also

http://developer.mozilla.org- /en- /docs- /DOM:element.scrollWidth

getScrollHeight

Returns an integer representing the scrollHeight of the window.  This value is equal to or bigger than getHeight.

See Also

http://developer.mozilla.org- /en- /docs- /DOM:element.scrollHeight

getScrollLeft

Returns an integer representing the scrollLeft of the window (the number of pixels the window has scrolled from the left).

See Also

http://developer.mozilla.org- /en- /docs- /DOM:element.scrollLeft

getScrollTop

Returns an integer representing the scrollTop of the window (the number of pixels the window has scrolled from the top).

See Also

http://developer.mozilla.org- /en- /docs- /DOM:element.scrollTop

getSize

Return an Object representing the size/scroll values of the element.
Returns an integer representing the width of the browser window (without the scrollbar).
Returns an integer representing the height of the browser window (without the scrollbar).

Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi