[thelist] In Javascript: how to get browser's dimensions?

aardvark roselli at earthlink.net
Wed Nov 28 23:30:44 CST 2001


> From: "Alliax" <damiencola at wanadoo.fr>
[...]
> window.resizeto() and specify width and height I know we can get the
> screen resolution with screen.width and scree.height But what about
> the browser current dimensions?
> 
> Is it impossible to get in javascript?
> If so, do you have an explanation for this, since getting an
> application's window size seems pretty basic, so why not updating the
> javascript environment variables if the browser get resized by the
> user ?

i know this has been answered, but i thought you might find this 
somewhat useful (or maybe you can improve upon it):

Real-World Browser Size Stats, Part I
http://evolt.org/article/list/17/2295/




More information about the thelist mailing list