the compact javascript framework
in partnership with mediatemple
Window cross-browser dimensions methods.
The Functions in this script require an XHTML doctype.
MIT-style license.
Window. Size.js | Window cross-browser dimensions methods. |
window | Cross browser methods to get various window dimensions. |
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. |
getScrollHeight | Returns an integer representing the scrollHeight of the window. |
getScrollLeft | Returns an integer representing the scrollLeft of the window (the number of pixels the window has scrolled from the left). |
getScrollTop | Returns an integer representing the scrollTop of the window (the number of pixels the window has scrolled from the top). |
getSize | Same as Element.getSize |
Cross browser methods to get various window dimensions. Warning: All these methods require that the browser operates in strict mode, not quirks mode.
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. |
getScrollHeight | Returns an integer representing the scrollHeight of the window. |
getScrollLeft | Returns an integer representing the scrollLeft of the window (the number of pixels the window has scrolled from the left). |
getScrollTop | Returns an integer representing the scrollTop of the window (the number of pixels the window has scrolled from the top). |
getSize | Same as Element.getSize |
Returns an integer representing the scrollWidth of the window. This value is equal to or bigger than getWidth.
http://developer.mozilla.org- /en- /docs- /DOM:element.scrollWidth
Returns an integer representing the scrollHeight of the window. This value is equal to or bigger than getHeight.
http://developer.mozilla.org- /en- /docs- /DOM:element.scrollHeight
Returns an integer representing the scrollLeft of the window (the number of pixels the window has scrolled from the left).
http://developer.mozilla.org- /en- /docs- /DOM:element.scrollLeft
Returns an integer representing the scrollTop of the window (the number of pixels the window has scrolled from the top).
http://developer.mozilla.org- /en- /docs- /DOM:element.scrollTop
Same as Element.getSize
Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi