www.webdeveloper.com
Results 1 to 4 of 4

Thread: Detect window resolution of user

  1. #1
    Join Date
    Nov 2002
    Location
    HK
    Posts
    5

    Question Detect window resolution of user

    Dear all,
    Could anybody tell me how to use javascript to detect what resolution the user is using? 800x600 or 1024x768? Thx!

  2. #2
    Join Date
    Nov 2002
    Posts
    4,473

  3. #3
    Join Date
    Nov 2002
    Posts
    984
    Additionally JFYI, on a well constructed webpage you don't need to know the screensize of the user, it will work fine whatever resolution the user has.

    Also, remeber that you ae probably not looking for knowing the screen size of the user, but the size available in the browserwindow.
    // Stefan Huszics

  4. #4
    Join Date
    Nov 2002
    Posts
    421
    the two attributes to test are
    screen.width
    screen.height

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