|
January 7, 2000 The Screen Object Tips: January 2000
Yehuda Shiran, Ph.D.
|
|
The screen object features several properties that deal with the screen's dimensions. The most obvious ones are height and width. The following script segment prints the height and width of the screen:
If you're running Windows 95/98, for example, you probably know that not all portions of the screen are really active. For example, the Windows 95/98 Taskbar, which is usually located at the bottom of the screen, slightly reduces the screen's height. Another classic example of an inactive screen portion is the Office Shortcut Toolbar. The Internet Explorer 4.0x and up correctly takes all permanent and semipermanent user interface features (displayed by the operating system) into account. But Navigator 4.0x and up doesn't always account for such elements. We evaluated these properties on a Windows 95/98 system, displaying an Office Shortcut Toolbar. Both browsers subtracted the height of the Taskbar, but only Internet Explorer 4.0x and up actually subtracted the width of the Shortcut Toolbar.
Another difference between Navigator 4.0x and up and Internet Explorer 4.0x and up is that only Navigator supports the
Notice that
In this example, the Learn more about the Screen object from Column 17, Screen Properties.
People who read this tip also read these tips: Look for similar tips by subject: |