wheelDelta property (event)
Returns an integer value indicating the distance that the mouse wheel rolled.
Negative values mean the mouse wheel rolled down. The returned value is always a multiple of 120.
The wheelDelta property can be used in case of onmousewheel events.
You can find the related objects in the Supported by objects section below.
This property is read-only.
Integer that represents the roll amount.
Default: this property has no default value.
Example HTML code 1:
This example implements a cross-browser solution to get the roll amount:
Did you find this example helpful?
User Contributed Comments