$(document).ready(function() {
            var height = $('body').height();
            alert(height)
});

NOTE: Remember to include the JQuery library file.