Shopping through STARKUPBD. Happy Shopping

Shopping through STARKUPBD. Happy Shopping

Concept on Window Height and Document Height

Category: Jquery Post By: Admin Post Date: 8/2/2016

We need to clear our concept for window height and document height when working with height in javascript or in jquery.

Window Height

Window Height Means height of the (browser) window i.e the viewport. According to web browsers, the viewport here is visible portion of the canvas. In another way the window object represents an open window in a browser
Document Height

That means height of the document which is rendered. If the actual document’s body height is less than the viewport height then it will return the viewport height instead. The Document object is the root of a document tree.

Leave Comment