Name
height, width — NN 4 IE 4 DOM n/a
Synopsis
Read-only
Returns the number of pixels available vertically and horizontally in
the client video monitor. This is the raw dimension. For the amount
of screen space not covered by system bars, see
availHeight
and availWidth
.
Example
if (screen.height > 480 && screen.width > 640) { ... }
Value
Integer of pixel counts.
Default
Depends on video monitor.
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.