I have a webpage and I want it to alert 'hello world' if the user scrolls, BUT there is no scrollable frame (sort of a javascript/jquery event $(document).onmousewheeluse(); ). Is there a way to do this or should I hide a scrollable div somewhere?
Asked
Active
Viewed 305 times
0
-
1possible duplicate http://stackoverflow.com/questions/8189840/get-mouse-wheel-events-in-jquery – Girish Aug 06 '14 at 12:46
1 Answers
0
document.addEventListener("mousewheel", MouseWheelHandler, false);
will call the function MouseWheelHandler
when scrolled.

Friedrich
- 2,211
- 20
- 42