window height is getting the length of the html document rather than the size of my browser window.
Do you know where I'm going wrong?
Here's my script:
$(document).ready(function() {
alert($( window ).height());
});
I also have at the top of my doc which I've read can cause issues:
<!DOCTYPE html>
window.innerHeight
$(document).ready(function() {
alert(window.innerHeight);
});
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