[evolt]Re: [thelist] possible to sense screen resolution?

George Donnelly gsd at mac.com
Wed May 31 09:55:28 2000


thanks. that's really helpful.

what about this? redirect evrybody with browsers older than 4.0 to the
640X480 page? Am i stereotyping too much? committing browserism ;
-)
Regards,
GEORGE DONNELLY
george@cyklotron.com
http://cyklotron.com/
It`s freedom, baby! Yeaah! --Austin Powers

>> is it posible to sense the resolution of the surfer's computer and then, say
>> if they have a 640X480 screen, redirect them to a different page?
> 
> screen.availWidth will do it in javascript, however, this is really only of
> any
> use if the user has thier browser window maximized, you could try juggling
> with
> width ranges and use document.body.clientWidth instead as this returns the
> actual width of the window.
> 
> Garry