function bodyContentsHeight() { var h = Math.max.apply( null, [document.body.clientHeight , document.body.scrollHeight, document.documentElement.scrollHeight, document.documentElement.clientHeight] ); return h; }
![](https://kurubusi.net/wp-content/uploads/2014/12/canstockphoto6970811.jpg)
function bodyContentsHeight() { var h = Math.max.apply( null, [document.body.clientHeight , document.body.scrollHeight, document.documentElement.scrollHeight, document.documentElement.clientHeight] ); return h; }