I want to implement a scroll function. Therefore, the default value for scrolling is disabled. And if the user uses the scroll button, I want it to be configured the way I want. How can I implement this feature? window.scrollTop does not work. I tried many different methods, but all of them did not work.
$(window).scroll(function() {
$(body).scrollTop = 3000px;
})
source
share