'wheelDelta' Example : wheelDelta « Javascript Properties « JavaScript Reference

'wheelDelta' Example

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

    
      
      








Related examples in the same category

1.'wheelDelta' Syntax and Note
2.'wheelDelta' is applied to