W3C DOM tests - WindowView

This page contains test cases for the CSS OM Window View.

Test scripts

innerWidth and innerHeight

alert(window.innerWidth)
alert(window.innerHeight)

outerWidth and outerHeight

alert(window.outerWidth)
alert(window.outerHeight)

pageXOffset and pageYOffset

Scroll a bit before doing this test.

alert(window.pageXOffset)
alert(window.pageYOffset)

Paragraph to allow scrolling.

Paragraph to allow scrolling.

Paragraph to allow scrolling.

Paragraph to allow scrolling.

Paragraph to allow scrolling.

Paragraph to allow scrolling.

Paragraph to allow scrolling.

Paragraph to allow scrolling.

screenX and screenY

alert(window.screenX)
alert(window.screenY)