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.
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
"If you’re not using valid HTML, then you haven’t created a Web page. You may have created something else, but it isn’t a Web page." - Joe Clark
Bookmarks