Viewport dimensionsIE 6.0.2900Firefox 1.5.0.5Opera 9.00Safari 2.0.4

StrictTransitionalStrictTransitionalStrictTransitionalStrictTransitional

window.innerWidthundefinedundefined421421419419402402

window.innerHeightundefinedundefined421421419419402402

document.documentElement.clientWidth4010402402402402402402

document.documentElement.clientHeight401040211131047111310501050

document.documentElement.offsetWidth422419402402402402402402

document.documentElement.offsetHeight422419111611131047111310501050

document.body.clientWidth379400384402400402384384

document.body.clientHeight1072400109840240040210321032

Viewport scrollIE 6.0.2900Firefox 1.5.0.5Opera 9.00Safari 2.0.4

StrictTransitionalStrictTransitionalStrictTransitionalStrictTransitional

window.pageXOffsetundefinedundefined250250250250250250

window.pageYOffsetundefinedundefined250250250250250250

document.documentElement.offsetLeft00000000

document.documentElement.offsetTop00000000

document.documentElement.scrollLeft25002500250000

document.documentElement.scrollTop25002500250000

document.body.scrollLeft02500250250250250250

document.body.scrollTop02500250250250250250

Strict doctype used for testing<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">

Transitional doctype used for testing<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

See alsohttp://hsivonen.iki.fi/doctype/

http://www.quirksmode.org/css/quirksmode.html

http://msdn.microsoft.com/workshop/author/om/measuring.asp

http://msdn.microsoft.com/workshop/samples/author/dhtml/overview/measure.htm

http://www.quirksmode.org/viewport/intro.html

http://www.quirksmode.org/viewport/compatibility.html

http://www.quirksmode.org/viewport/experiments.html