Mega Code Archive

 
Categories / JavaScript Reference / Event Handlers Reference
 

OnMouseWheel Example

<html> <body>     <p>Move the pointer on top of the image and then move the mouse wheel up or down.</p>     <img id="yourimage"           src="http://www.rntsoft.com/style/logo.png"           onmousewheel="alert('Wheel Delta: ' + event.wheelDelta);"> </body> </html>