References

Collection of references for web development.

HTML onwheel event

Description

Execute JavaScript code when the user rolls the mouse button on the element.

Example

<div style="height:100px;width:100px;border:1px solid green;" onwheel="this.style.backgroundColor = 'orange'"></div>