0

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?

vrugtehagel
  • 1,009
  • 1
  • 9
  • 20
  • 1
    possible duplicate http://stackoverflow.com/questions/8189840/get-mouse-wheel-events-in-jquery – Girish Aug 06 '14 at 12:46

1 Answers1

0
document.addEventListener("mousewheel", MouseWheelHandler, false);

will call the function MouseWheelHandler when scrolled.

Friedrich
  • 2,211
  • 20
  • 42