en.javascript.info/2-ui/1-document/09-size-and-scroll/1-get-scroll-height-bottom/solution.md
Ilya Kantor aeb74092b6 up
2017-03-14 04:09:37 +03:00

7 lines
233 B
Markdown

The solution is:
```js
let scrollBottom = elem.scrollHeight - elem.scrollTop - elem.clientHeight;
```
In other words: (full height) minus (scrolled out top part) minus (visible part) -- that's exactly the scrolled out bottom part.