I am getting the window height like this:
var theHeight = "innerHeight" in window
? window.innerHeight
: document.documentElement.offsetHeight;
I need a var that is theHeight minus 50px
How do I get that?
Thanks!
If you are using jQuery as your tag indicates, you can just use:
var theHeight = $(window).height() - 50;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With