A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/Window/screen below:

Window: screen property - Web APIs

MDN Web Docs
  1. Web
  2. Web APIs
  3. Window
  4. screen

Filter sidebar

In this article
  1. CSS Object Model (CSSOM)
  2. Window
  3. Instance properties
    1. caches
    2. closed
    3. cookieStore
    4. credentialless Experimental
    5. crossOriginIsolated
    6. crypto
    7. customElements
    8. devicePixelRatio
    9. document
    10. documentPictureInPicture Experimental
    11. event Deprecated
    12. external Deprecated
    13. fence Experimental
    14. frameElement
    15. frames
    16. fullScreen Non-standard
    17. history
    18. indexedDB
    19. innerHeight
    20. innerWidth
    21. isSecureContext
    22. launchQueue Experimental
    23. length
    24. localStorage
    25. location
    26. locationbar
    27. menubar
    28. mozInnerScreenX Non-standard
    29. mozInnerScreenY Non-standard
    30. name
    31. navigation Experimental
    32. navigator
    33. opener
    34. orientation Deprecated
    35. origin
    36. originAgentCluster
    37. outerHeight
    38. outerWidth
    39. parent
    40. performance
    41. personalbar
    42. scheduler
    43. screen
    44. screenLeft
    45. screenTop
    46. screenX
    47. screenY
    48. scrollbars
    49. scrollMaxX Non-standard
    50. scrollMaxY Non-standard
    51. scrollX
    52. scrollY
    53. self
    54. sessionStorage
    55. sharedStorage Experimental
    56. speechSynthesis
    57. status Deprecated
    58. statusbar
    59. toolbar
    60. top
    61. trustedTypes
    62. visualViewport
    63. window
  4. Instance methods
    1. alert()
    2. atob()
    3. blur() Deprecated
    4. btoa()
    5. cancelAnimationFrame()
    6. cancelIdleCallback()
    7. captureEvents() Deprecated
    8. clearImmediate() Non-standard Deprecated
    9. clearInterval()
    10. clearTimeout()
    11. close()
    12. confirm()
    13. createImageBitmap()
    14. dump() Non-standard
    15. fetch()
    16. fetchLater() Experimental
    17. find() Non-standard
    18. focus()
    19. getComputedStyle()
    20. getDefaultComputedStyle() Non-standard
    21. getScreenDetails() Experimental
    22. getSelection()
    23. matchMedia()
    24. moveBy()
    25. moveTo()
    26. open()
    27. postMessage()
    28. print()
    29. prompt()
    30. queryLocalFonts() Experimental
    31. queueMicrotask()
    32. releaseEvents() Deprecated
    33. reportError()
    34. requestAnimationFrame()
    35. requestFileSystem() Non-standard Deprecated
    36. requestIdleCallback()
    37. resizeBy()
    38. resizeTo()
    39. scroll()
    40. scrollBy()
    41. scrollByLines() Non-standard
    42. scrollByPages() Non-standard
    43. scrollTo()
    44. setImmediate() Non-standard Deprecated
    45. setInterval()
    46. setResizable() Non-standard Deprecated
    47. setTimeout()
    48. showDirectoryPicker() Experimental
    49. showOpenFilePicker() Experimental
    50. showSaveFilePicker() Experimental
    51. sizeToContent() Non-standard
    52. stop()
    53. structuredClone()
    54. webkitConvertPointFromNodeToPage() Non-standard Deprecated
    55. webkitConvertPointFromPageToNode() Non-standard Deprecated
  5. Events
    1. afterprint
    2. appinstalled
    3. beforeinstallprompt
    4. beforeprint
    5. beforeunload
    6. blur
    7. devicemotion
    8. deviceorientation
    9. deviceorientationabsolute
    10. error
    11. focus
    12. gamepadconnected
    13. gamepaddisconnected
    14. hashchange
    15. languagechange
    16. load
    17. message
    18. messageerror
    19. offline
    20. online
    21. orientationchange Deprecated
    22. pagehide
    23. pagereveal
    24. pageshow
    25. pageswap
    26. popstate
    27. rejectionhandled
    28. resize
    29. scrollsnapchange Experimental
    30. scrollsnapchanging Experimental
    31. storage
    32. unhandledrejection
    33. unload Deprecated
    34. vrdisplayactivate Non-standard Deprecated
    35. vrdisplayconnect Non-standard Deprecated
    36. vrdisplaydeactivate Non-standard Deprecated
    37. vrdisplaydisconnect Non-standard Deprecated
    38. vrdisplaypresentchange Non-standard Deprecated
  6. Inheritance
    1. EventTarget
  7. Related pages for CSSOM
    1. CSS
    2. CSSConditionRule
    3. CSSFontFeatureValuesRule
    4. CSSFontPaletteValuesRule
    5. CSSGroupingRule
    6. CSSImportRule
    7. CSSKeyframeRule
    8. CSSKeyframesRule
    9. CSSLayerBlockRule
    10. CSSLayerStatementRule
    11. CSSMediaRule
    12. CSSNamespaceRule
    13. CSSPageDescriptors
    14. CSSPageRule
    15. CSSPropertyRule
    16. CSSRule
    17. CSSRuleList
    18. CSSStartingStyleRule
    19. CSSStyleDeclaration
    20. CSSStyleRule
    21. CSSStyleSheet
    22. CSSSupportsRule
    23. CaretPosition
    24. MediaList
    25. MediaQueryList
    26. Screen
    27. StyleSheet
    28. StyleSheetList
  8. Guides
    1. CSS Declaration
    2. CSS Declaration Block
    3. Determining the dimensions of elements
    4. Managing screen orientation
    5. Using dynamic styling information
In this article Window: screen property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

The Window property screen returns a reference to the screen object associated with the window. The screen object, implementing the Screen interface, is a special object for inspecting properties of the screen on which the current window is being rendered.

Value

A Screen object.

Examples

js

if (screen.pixelDepth < 8) {
  // use low-color version of page
} else {
  // use regular, colorful page
}
Specifications Specification CSSOM View Module
# dom-window-screen
Browser compatibility Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Apr 8, 2023 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4