1 function scroolToEnd() { 2 var h = $(document).height()-$(window).height(); 3 $(document).scrollTop(h);