Let us see an example for catching mouse scroll wheel event in JavaScript. In our example we will have a small DIV that moves up and down on scroll of mouse wheel. Following is the source code of our example:
01
<html>
02
<head>
03
<title>Mouse Scroll Wheel example inJavaScript - ViralPatel.net</title>