Home  >  Forum  >  JavaScript
Post New Query

Difference between document.height and window.height


joined on
March 27,2014
Asked on August 02,2014
What is difference between document.height and window.height?
joined on
March 16,2013
Replied on August 02,2014

Window height is depend upon window resolutin $(window).height returns the height of your window. Window height can’t change according page height.

$(window).height()

But document height is depend upon page height if page height increased document height will be increased. Document height includes everything below or above. It is return document height.

$(document).height()

Write Answer








Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us