Like ... a height that excludes an address bar, bookmarks, etc. view space only.
$(window).innerHeight()
doesn't seem to work.
Use .height() for this, as indicated in the API:
.height()
This method is also able to find the height of the window and the document. $(window).height(); // returns height of browser viewport $(document).height(); // returns height of HTML document
This method is also able to find the height of the window and the document.
$(window).height(); // returns height of browser viewport $(document).height(); // returns height of HTML document
As for why .innerHeight() doesn't work:
.innerHeight()
This method is not applicable to window and document objects; use .height() for this.