My favorites | Sign in
Project Logo
             
Search
for
Updated Sep 19, 2008 by pilgrim
Labels: about-dom, is-dom-property
ScreenAvailWidthProperty  
The screen.availWidth property

Values

The screen.availWidth property returns an integer.

All browsers support this property uniformly. They calculate the available width by taking the total screen width and subtracting any space used by "always on top" taskbars (on Windows) or panels (on Linux). Another way to look at it is the maximum width of the browser window, including the window border, sidebar, and scroll bars.

Example: if your screen is 1400 x 1050 pixels and you have a taskbar on the left edge of your screen that is 200 pixels wide and is set to "keep the taskbar on top of other windows," then screen.availWidth will be 1200.

This property is read-only.

Usage

Browser compatibility

Compatibility table legend

Test IE8 IE7 IE6 FF3 FF2 Saf3 Op9 Chrome
typeOf(screen.availWidth) != 'undefined' Y Y Y Y Y Y Y Y

Further reading


Sign in to add a comment
Hosted by Google Code