URLを変化させずに、一瞬でページ内遷移:jQuery

<script type="text/javascript">
$(function(){
$('#doclick').click(function(e){
//moveId = location.hash;
moveId = "#gotoid";
movePostion = $(moveId).offset().top;
$('html,body').animate({ scrollTop: movePostion }, 0 );
return false;
});
});
</script>