同一个div的滚动条怎么每次出现的时候都是默认在顶部?

同一个div的滚动条怎么每次出现的时候都是默认在顶部?
用jQuery要怎么写 望大神赐教

$(document).scroll(function(e) {
    if($(document).scrollTop()!=0){
        $("#test2").stop();
        $("#test2").animate({"top":"0"});
    }
    else{
        $("#test2").stop();
        $("#test2").animate({"top":"20px"});
    }
});

window.scroll(x,y)跳转到页面的指定坐标点,目标点是以像素为单位从页面左上角为标记点的距离,水平和垂直滚动条滚动到相应x,y点