CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Posts
    72

    How to use JSP or Javascript to get resolution rate?

    Hi, everyone!

    How to use JSP or Javascript to get resolution rate
    (for example, 800*600, 1024*768, ... )?

    Cheers,
    George

  2. #2
    Join Date
    Jan 2002
    Location
    Helsinki, Finland
    Posts
    99
    JS :
    Code:
    <script type="text/javascript">
    <!--
    var iResWidth = screen.width;
    var iResHeight = screen.height;
    
    alert("Your resolution is : "+ screen.width +"x"+ screen.height +".");
    // -->
    </script>
    Zvona - First aid for client-side web design

  3. #3
    Join Date
    May 2002
    Posts
    72
    Thanks, your codes works nice!

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

Featured