Results 1 to 4 of 4

Thread: Resolution detection in JavaScript

  1. #1

    Thread Starter
    Addicted Member hypnos's Avatar
    Join Date
    Aug 2000
    Location
    UK
    Posts
    183

    Smile Resolution detection in JavaScript

    Hi everybody,
    I have a web site that is best viewed with a 1024x768 pixel display or better. Is there a way to detect what resolution a person is using? This would enable me to tell the people who are using lower resolutions that they are using a bad resolution for my site.

    Thanks

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    screen.height
    and
    screen.width

    Code:
    function getRes(){
    var intHeight;
    var intWidth;
    
    intHeight = screen.height;
    intWidth = screen.width;
    
    }

    Chris
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  3. #3

    Thread Starter
    Addicted Member hypnos's Avatar
    Join Date
    Aug 2000
    Location
    UK
    Posts
    183
    LOL It's almost Visual Basic Thanks Psyrus

  4. #4
    scoutt
    Guest
    you can also search this forum as it has been asked in the last month I think.

Posting Permissions

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



Click Here to Expand Forum to Full Width