I\'m designing a very simple web page (HTML only), the only \"feature\" I want to implement is to do something when the user scrolls down the page, is there a way to capture
above answers are correct. Here's the vanilla Javascript approach.
document.addEventListener("mousewheel", function(event){ if(event.wheelDelta >= 0){ console.log("up") }else{ console.log("down") } })