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
  • 779
  • 1
  • 5
  • 18

1 Answers1

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

will call the function MouseWheelHandler when scrolled.

Friedrich
  • 1,771
  • 17
  • 35