how to get height to section from device top using jquery code example Example: jquery get document height let height = ($(window).height() || $("body").height());