|
-
Jul 28th, 2001, 06:23 AM
#1
Thread Starter
Addicted Member
Resolution detection in JavaScript
Hi everybody,
I have a web site that is best viewed with a 1024x768 pixel display or better. Is there a way to detect what resolution a person is using? This would enable me to tell the people who are using lower resolutions that they are using a bad resolution for my site.
Thanks
-
Jul 28th, 2001, 08:05 PM
#2
Fanatic Member
screen.height
and
screen.width
Code:
function getRes(){
var intHeight;
var intWidth;
intHeight = screen.height;
intWidth = screen.width;
}
Chris
-
Jul 29th, 2001, 05:00 AM
#3
Thread Starter
Addicted Member
LOL It's almost Visual Basic Thanks Psyrus
-
Jul 29th, 2001, 12:24 PM
#4
you can also search this forum as it has been asked in the last month I think.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|