The screen ObjectAnother useful property of the window object is the screen property, which returns the screen objectwhich holds a great deal of information about the screen dimensions and color capabilities. You can see the various properties of the screen object in Table 7.3. Table 7.3. The Properties of the screen Object
Tip The screen object is a great one if you want to determine whether you can display large graphics (for example, you can check the screen's height and width properties)and if not, you can load smaller graphics (by changing <IMG> elements' SRC property on-the-fly , for example, or even navigating to a new page with the location.href property). |