The Wayback Machine - https://web.archive.org/web/20080901140505/http://developer.mozilla.org:80/en/DOM/window.screen.width

Mozilla.com

  1. MDC
  2. Main Page
  3. DOM
  4. window.screen.width

Some features of this site require JavaScript.

window.screen.width

« Gecko DOM Reference

Summary

Returns the width of the screen.

Syntax

lWidth = window.screen.width

Example

// crude way to check that the screen is at 1024x768
if (window.screen.width > 1000) {
    // resolution is below 10 x 7
}

Notes

Note that not all of the width given by this property may be available to the window itself. When other widgets occupy space that cannot be used by the window object, there is a difference in window.screen.width and window.screen.availWidth. See also window.screen.height.

Specification

DOM Level 0. Not part of specification.

Languages

Page last modified 19:01, 27 Dec 2007 by Mgjbot

Files (0)

 
 
 
Morty Proxy This is a proxified and sanitized view of the page, visit original site.