How to get use of the whole usable Screenheight | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to get use of the whole usable Screenheight

Hello community :) Which is the best way to get use of the whole usable screenheight? If i use: window.screen.availHeight; in Javascript it gets the screenheight, but this ignores the used space for the topbar in the output, so the webapp becomes scrollable.

6th Sep 2017, 2:53 PM
Philipp Biehler
Philipp Biehler - avatar
2 Answers
+ 5
use window.outerHeight; or this.outerHeight;
6th Sep 2017, 3:09 PM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 1
Thank you kayla X ren :) window.innerHeight worked fine. I used it in my code "flipball" but until now my objects moved out of the screen. Should i edit my question to make the problem more understandable?
6th Sep 2017, 3:15 PM
Philipp Biehler
Philipp Biehler - avatar