<html> <body> <p> Move mouse wheel on top of the image to check the wheel delta </p> <img id="yourimage" src="http://www.java2java.com/style/logo.png" onmousewheel="alert('Wheel Delta: ' + event.wheelDelta);"> </body> </html>