how to link id in html with smooth scroll code example Example: how to smooth scroll in javascript window.scrollTo({ top: 900, behavior: 'smooth' })