how to scroll a div smooth to top using jquery code example Example: smooth scroll to top jquery window.scrollTo({top: 0, behavior: 'smooth'});