W3cubDocs

/DOM

screen.availHeight

Returns the amount of vertical space available to the window on the screen.

Syntax

iAvail = window.screen.availHeight

Example

if (window.screen.availHeight !== window.screen.height) {
  // something's in the way!
  // use available to size window
}

Specification

Specification Status Comment
CSS Object Model (CSSOM) View Module
The definition of 'Screen.availHeight' in that specification.
Working Draft

© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/screen/availHeight