files/en-us/web/api/screen/index.md
{{APIRef("CSSOM view API")}}
The Screen interface represents a screen, usually the one on which the current window is being rendered, and is obtained using {{DOMxRef("window.screen")}}.
Note that browsers determine which screen to report as current by detecting which screen has the center of the browser window.
{{InheritanceDiagram}}
Also inherits properties from its parent {{domxref("EventTarget")}}.
true if the user's device has multiple screens, and false if not.The following properties are specified as part of the Window Management API, which makes them available on the {{domxref("ScreenDetailed")}} interface; this is where we have chosen to document them. However, non-standard versions of these properties are available on the Screen interface in browsers that don't support that API. See this page's Browser compatibility table for details of the non-standard support.
Also inherits methods from its parent {{domxref("EventTarget")}}.
if (screen.colorDepth < 8) {
// use low-color version of page
} else {
// use regular, colorful page
}
{{Specifications}}
{{Compat}}