Client Side Information

Lark Anton - VBScript Part 1 - Exercise 5

This site will automatically detect the resolution of your computer screen and will navigate to a page designed for your resolution.

The following information can be retrieved from the client machine:
Screen Resolution Window Size (in pixels)
Common screen resolutions (width x height) are: Window Size can be adjusted using the following properties:
  • 640 x 480
  • 800 x 600
  • 1024 x 768
  • 1280 x 1024
  • screen.width
  • screen.height
Once screen resolution is determined using "clientwidth" and "clientheight", pages tailored to the most common resolutions can be designed and displayed. Variables are useful for setting the screen.width and screen.height properties to "force" the browser window to a default size.