Click to See Complete Forum and Search --> : Detect window resolution of user
mikecracker
11-24-2002, 12:06 PM
Dear all,
Could anybody tell me how to use javascript to detect what resolution the user is using? 800x600 or 1024x768? Thx!
gil davis
11-24-2002, 12:51 PM
http://javascript.internet.com/user-details/resolution-page.html
Stefan
11-24-2002, 12:57 PM
Additionally JFYI, on a well constructed webpage you don't need to know the screensize of the user, it will work fine whatever resolution the user has.
Also, remeber that you ae probably not looking for knowing the screen size of the user, but the size available in the browserwindow.
Beach Bum
11-24-2002, 09:12 PM
the two attributes to test are
screen.width
screen.height