Difference between screen.availHeight and window.height()
window.outerHeight It’s the height of the window on screen, it includes the page and all the visible browser’s bars (location, status, bookmarks, window title, borders, …). This not the same as jQuery’s $(window).outerHeight(). window.innerHeight or $(window).height() It’s the height of the viewport that shows the website, just the content, no browser’s bars. document.body.clientHeight or $(document).height() … Read more