Home > Net >  What does window.clientHeight specifies in mobile screens?
What does window.clientHeight specifies in mobile screens?

Time:03-24

I have a simple doubt that when we specify window.clientheight in JavaScript for mobile screens, does it tells the whole screen's height including navigation panel (shown in image) or it excludes that panel. enter image description here

And if it includes that panel (as I'm guessing), how can I specify only screen's width excluding the panel.

CodePudding user response:

in your senerio, window.innerHeight is better option for you. I guess.

console.log(window.innerHeight)

  • Related