$(document).click(
function(event){
alert($(document).height())

});