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
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.