Name
availHeight, availWidth — NN 4 IE 4 DOM n/a
Synopsis
Read-only
Height and width of the content region of the user’s video monitor in pixels. This measure does not include the 24-pixel taskbar (Windows 95/NT) or 20-pixel system menubar (Macintosh). IE 4/Macintosh miscalculates the height of the menubar as 24 pixels. To use these values in creating a maximized window, you also have to adjust the top-left position of the window.
Example
var newWind = window.open("","","HEIGHT=" + screen.availHeight + ",WIDTH=" + screen.availWidth)
Value
Integer of available pixels in vertical and horizontal dimensions.
Default
Depends on the user’s monitor size.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.