var window_height = $( window ).height(); this is giving current window height not the full height including scroll height. I want full window height including scroll height.
You should check this link: How to get height of entire document with JavaScript?
var body = document.body,
html = document.documentElement;
var height = Math.max( body.scrollHeight, body.offsetHeight,
html.clientHeight, html.scrollHeight, html.offsetHeight );
As of 2020 the best way to find the height of an entire document is:
document.documentElement.scrollHeight
Credit: this answer on another question.
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