I use jquery ver 1.10.2 and I need to know the height of the body, not of the window(!). I use the following code:
<script>
window.onload=function(){
alert($("body").height());
}
</script>
But I get 0. Can you help me?
EDIT: I have checked - document height can't be less that window height, but I need to know the difference between body height and window height, when body height < window height as I want to use js to make sticky footer.