onmousewheel event

[This documentation is preliminary and is subject to change.]

Fires when the wheel button is rotated.

Syntax

HTML Attribute <element onmousewheel = "handler(event)">
Event Property object.onmousewheel = handler;
attachEvent Method object.attachEvent("onmousewheel", handler)
addEventListener Method object.addEventListener("mousewheel", handler, useCapture)

Standards information

There are no standards that apply here.

Event information

Synchronous No
Bubbles No
Cancelable No

Event handler parameters

Remarks

onmousewheel was introduced in Microsoft Internet Explorer 6

Scrolls the page up or down.

To invoke this event, do one of the following:

  • Rotate the wheel button.

See also

Reference

onscroll

onmousemove

onmousedown

onmouseout

onmouseover

onmouseup

 

 

Build date: 1/23/2012