How do jQuery set the total page height to be covered? Did innerHeight, screen.Height, document.height, window.Height and nothing helps. Nor cover the screen, not the whole document. How can I do to pick up the entire length of the document? So that when you change the size of the window, it does not distort or change

  • 2
    and $(document).height() didn't help? strange. - VladD
  • Sometimes you need to take into account indents, frames ... Then use .outerHeight () - Deonis

1 answer 1

if you have all the content, for example, in a block with a class .wrapper , then you just need to take the height of this block:

 $(".wrapper").height();