How to ? (1) after scrolling a webpage to the top (2) then automatically reload a page
Solution 1:
document.onscroll = () => {
if(scrollY === 0){
location.reload()
}}
document.onscroll = () => {
if(scrollY === 0){
location.reload()
}}