www.webdeveloper.com
Results 1 to 2 of 2

Thread: Screen resolution alert

  1. #1
    Join Date
    Aug 2003
    Posts
    1

    Screen resolution alert

    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

  2. #2
    Join Date
    Nov 2002
    Location
    Dartmoor [Holiday]
    Posts
    2,382
    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

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



Recent Articles