Results 1 to 2 of 2

Thread: Page Width?

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2002
    Posts
    61

    Page Width?

    Is there a wy I can get the width of a web-page on someone's screen, or whatever width the user has his browser sized to? (I am not talking about the screen/resolution size).

    Thanks.

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

    Re: Page Width?

    HTML Code:
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <script>
    document.write("screen.width = " + screen.width + "<br />");
    document.write("screen.height = " + screen.height + "<br />");
    document.write("screen.availWidth = " + screen.availWidth + "<br />");
    document.write("screen.availHeight = " + screen.availHeight + "<br />") ;
    document.write("document.body.clientWidth = " + document.body.clientWidth + "<br />");
    document.write("document.body.clientHeight = " + document.body.clientHeight + "<br />");
    </script>
    </body>
    </html>
    Chris

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

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