window.js defines the following functions:
getInnerHeight()getInnerHeight(window)
windowA reference to a window.
The inner height of the window (excluding chrome).
getInnerHeight() is a convenience function that gets the inner height of the window in a cross-browser way. In Mozilla and other true CSS compliant browsers, this represents the window height as opposed to the height of the document within the window.
getInnerWidth()getInnerWidth(window)
windowA reference to a window.
The inner width of the window (excluding chrome).
getInnerWidth() is a convenience function that gets the inner width of the window in a cross-browser way.
getScrollLeft()getScrollLeft(window)
windowA reference to a window.
The distance to the left that the window has been scrolled in pixels.
getScrollLeft() is a convenience function that gets the horizontal scroll distance of the window in a cross-browser way.
getScrollTop()getScrollTop(window)
windowA reference to a window.
The distance downwards that the window has been scrolled in pixels.
getScrollTop() is a convenience function that gets the vertical scroll distance of the window in a cross-browser way.
This script is released under a Creative Commons License.