|
ScreenAvailWidthProperty
The screen.availWidth property
ValuesThe 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. UsageBrowser compatibility
Further reading |
Sign in to add a comment