Click to See Complete Forum and Search --> : Screen resolution alert


pstoner
08-20-2003, 02:44 AM
Guys,

I am designing a site that must be viewed 800x600 of higher. Does anyone have a script that alerts the user (if they are running 640x480) on entry to change their resolution to 800x600 or higher.

I hope this makes sense to you all.

Many Thanks

Paul

AdamGundry
08-20-2003, 04:00 AM
Your web page should not be dependent on screen resolution - use a standards-compliant flowing design, so that it will work anywhere. Remember, even if the screen is 800*600 or bigger, the user might be looking at it in a smaller browser window.

If you must display this alert, you can use something like this:

if (screen.width < 800){
alert('You are using a screen resolution smaller than 800 pixels wide!');
}

Adam