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 299 times
0
-
1possible duplicate http://stackoverflow.com/questions/8189840/get-mouse-wheel-events-in-jquery – Girish Aug 06 '14 at 12:46
-
you're right :$. Thanks a lot! – vrugtehagel Aug 06 '14 at 12:50
1 Answers
0
document.addEventListener("mousewheel", MouseWheelHandler, false);
will call the function MouseWheelHandler when scrolled.
Friedrich
- 1,771
- 17
- 35