[Javascript] Outer window dimensions for IE

Peter-Paul Koch gassinaumasis at hotmail.com
Fri Jan 11 04:58:51 CST 2002


> > >From: "Victor Papp" <victorpapp at yahoo.com>
> >
> > >Is there a way to determine the outer dimensions of the current window 
>in
> > >IE?
> >
> > You mean the dimensions with toolbars etc., right? I don't think there's 
>a
> > way to determine it, like Netscape's outerWidth. Maybe 
>window.clientWidth
> > would work, but this is a guess.
> >
> > See http://www.xs4all.nl/~ppk/js/index.html?winprop.html for the
>properties
> > that do work (but it doesn't give the property you want). Maybe it gives
>you
> > some inspiration.
>
>document.body.clientWidth   ?

That's the *inner* width of a window, the width of the area where the web 
page is actually shown. He wanted the outer width, so including window 
borders and toolbars and stuff.

ppk

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




More information about the Javascript mailing list