addeventlistener wheel code example Example: javascript detect scroll wheel element.onscroll = function() { // Code here }