html css bring to page top code example Example: html css bring to page top window.scroll({ top: 0, left: 0, behavior: 'smooth' });