get height code example
Example 1: find div height in javascript
//includes margin and padding
document.getElementById('myDiv').offsetHeight;
//without margin and padding
document.getElementById('myDiv').clientHeight;
Example 2: jquery get document height
let height = ($(window).height() || $("body").height());