JQuery Obtenha altura do documento
let height = ($(window).height() || $("body").height());
Agreeable Addax
let height = ($(window).height() || $("body").height());
$("#YOUR-ELEMENT").height();