if( $( window). scrollTop()< $( document). height()){ $( window). scrollTop( $( document). height()) }