How can I get the height of viewable web page of browser with jquery? I have tried $(window).height()
but 开发者_StackOverflow中文版it did not return accurate result.. Thanks..
From the jQuery documentation:
$(window).height(); // returns height of browser viewport
$(document).height(); // returns height of HTML document
height=$(window).height();
精彩评论