Imagine the scenario where window.innerHeight = 978px
with the browser not in full screen mode.
However, as the browser is resized, the value of window.innerHeight
will decrease accordingly.
So, how can one achieve the same height = 978px
when the browser is not at 100%? (This information is needed for a calculation within a JavaScript script)
Update
I have come up with a solution, the script should be
window.screen.availHeight - window.outerHeight + window.innerHeight
But, for Safari browsers, the script needs to be adjusted slightly
window.screen.availHeight - window.outerHeight + window.innerHeight - 3