IE does not provide a simple way to accurately retrieve the size of a document! document.documentElement.clientWidth reports 0 (zero) in some cases, while document.body.clientWidth also reports 0 in others. In some cases clientWidth may report the width of the object minus the size of the scrollbar, even when there is no scrollbar on the screen.