$(function(){ var aa=$('body').scrollTop(); $('body').scroll(function(){ if(aa==0){ $('body').scrollTop(1) } $('p').html($('body').scrollTop()) }) })