-1

I'm trying to use value of height of whole document in my angular application. But everything i'm trying to use returns height of my viewport (e.g. scrollHeight, clientHeight, offsetHeight). Is there any way to find out height of whole page content ?

  • Does this answer your question? [How to find the height of the entire webpage?](https://stackoverflow.com/questions/41179264/how-to-find-the-height-of-the-entire-webpage) – Reyno Nov 09 '20 at 09:18
  • Does this answer your question? [What is offsetHeight, clientHeight, scrollHeight?](https://stackoverflow.com/questions/22675126/what-is-offsetheight-clientheight-scrollheight) – Tân Nov 09 '20 at 09:18
  • Does this answer your question? [How to get height of entire document with JavaScript?](https://stackoverflow.com/questions/1145850/how-to-get-height-of-entire-document-with-javascript) – yazan Nov 09 '20 at 11:34

1 Answers1

0

You can try to use document.body.clientHeight.

Sergey
  • 1,000
  • 8
  • 19