IE browser window size
Posted on 2003-02-21
In IE, the self.resizeTo(X,Y) function sets the outside dimension of the browser window.
document.body.clientWidth gives the internal window size without the scroll bar.
document.body.offsetWidth gives the external window size with the scroll bar
(document.documentElement for IE 6)
BUT and here is the issue, neither of them give the window size WITH the "history picker" or "search sidebar" if they are on in the window. So I'm stuck trying to figure out how to actually make my page display correctly (designed for 800x600 760x420 useable) using offsetWidth with resizeTO. Or any other method for that matter if the client is using IE with their history/search sidebar open.
Thanks in advance for your help.