What is the difference window.innerHeight and document.body.offsetHeight ?
window.innerHeight
document.body.offsetHeight
<body />
В принципе никакая,
window.innerHeight - returns the height of the window, and document.body.offsetHeight returns the height of the entire page.
Source: https://ru.stackoverflow.com/questions/595935/More articles:How to impose on variardik restrictions on the types accepted?Update access database from DataGridView (winforms)Java file explicitly specify encodingHow to fill in a listbox from XAML WPFProblem solving by dynamic programmingHow to display the contents of the link (link to the 3D model)?Fragment and DialogFragment with DatePickerDialog inside problemNavbar menu in BootstrapAuthorization on jQuery + PHP + SQLGET parameter in controller Yii 2All Articles
window.innerHeightis the height of the entire site window, anddocument.body.offsetHeight<body />height - YuriВ принципе никакая,for this page the first one is 598, the second one is 1877. I didn’t notice any difference :) - Visman