Get webpage height via jQuery

How to get the height of browsed webpage of browser using jquery? I tried $(window).height() , but it did not return the exact result .. Thanks ..

+4
source share
2 answers

From the jQuery documentation:

 $(window).height(); // returns height of browser viewport $(document).height(); // returns height of HTML document 
+9
source
 height=$(window).height(); 
0
source

Source: https://habr.com/ru/post/1336350/


All Articles