Contents Home Page Previous Page Next Page
NS4.x and IE4.x only

Detecting Surfer's Screen Type

This script uses features of DHTML, although it is not really 'Dynamic'. However, getting the details of the visitor's screen can be important with DHTML, with its frequent use of absolute positioning. If, say, an author wants to place an object 700 pixels from the left of the screen, it will disappear off the right-hand edge if the visitor's screen resolution is set to 640 by 480!

Note that IE4.x does not support one of the properties in the script, so the last text box appears as "null".

Width:
Height:
Colour Depth:
Pixel Depth:

Script by: George Chiang