Calculate height and width of an element with respect to window/document height and width
Get height of window $(window).height(): Returns height of visible viewport/screen (does not include height of scrollable content) Get height of the page $(document).height(): Returns height of the length of the content/page (includes the height of the scrollable content) Get width of window $(window).width(): Returns width of visible viewport minus width of scrollbar
Read more