A RetroSearch Logo

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

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/Screen/availWidth below:

Screen: availWidth property - Web APIs

MDN Web Docs
  1. Web
  2. Web APIs
  3. Screen
  4. availWidth

Filter sidebar

In this article
  1. Screen
  2. Instance properties
    1. availHeight
    2. availWidth
    3. colorDepth
    4. height
    5. isExtended Experimental
    6. mozBrightness Non-standard Deprecated
    7. mozEnabled Non-standard Deprecated
    8. orientation
    9. pixelDepth
    10. width
  3. Instance methods
    1. lockOrientation() Deprecated
    2. unlockOrientation() Deprecated
  4. Events
    1. change Experimental
    2. orientationchange Non-standard Deprecated
In this article Screen: availWidth 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 Screen.availWidth property returns the amount of horizontal space (in CSS pixels) available to the window.

Value

A number.

Examples

js

const screenAvailWidth = window.screen.availWidth;

console.log(screenAvailWidth);
Specifications Specification CSSOM View Module
# dom-screen-availwidth
Browser compatibility Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Nov 4, 2024 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