I\'m trying to detect the position of the browser\'s scrollbar with JavaScript to decide where in the page the current view is. My guess is that I have to detect where the t
it's like this :)
window.addEventListener("scroll", (event) => { let scroll = this.scrollY; console.log(scroll) });