Screen.availHeight
Returns the amount of vertical space available to the window on the screen.
Syntax
JavaScript
Copy Code
iAvail = window.screen.availHeight
Example
JavaScript
Copy Code
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 |
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/screen/availheight