Javascript: check IF page is at the top September 6, 2023 by Tarik Try this: document.body.scrollTop === 0