Retrieving the dimensions of a window or how far a window has been scrolled requires looking at a different property in all the major browsers. This script creates one function for each quantity to simplify the process.
( Javascript 1.1 | JScript 2.0 | ECMAScript 1.0 ) & DOM 0
Posted.
Rewritten using info from Peter-Paul Koch's site, QuirksMode.
This script is released under a Creative Commons License.