Results 1 to 2 of 2

Thread: Screen resolution alert

  1. #1
    Join Date
    Aug 2003

    Screen resolution alert


    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


  2. #2
    Join Date
    Nov 2002
    Dartmoor [Holiday]
    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!');

    "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

    Do something amazing (USA) | Make Poverty History

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center