JavaScript - - By Sam Deering

jQuery Get Length of Webpage

jQuery code snippet to get the length (height) of a web page.

var webpage = $("body");
var webpage_height = webpage.height();
alert(webpage_height);

Note you can also use: $(document).height() or $(window).height() instead of body selector.

Sponsors
Login or Create Account to Comment
Login Create Account