728x90
function scrollToTop() {
    $('html, body').animate({scrollTop: 0 }, 'slow');
}

<a onclick="scrollToTop()"></a>

출처: https://seongilman.tistory.com/301 [SEONG]
728x90

+ Recent posts