$(window).height(); // returns height of browser viewport$(document).height(); // returns height of HTML document
You could use the height() of the document.
height()
$(document).height();
This can work also.
$('body').height();