onmouseover event

Fires when the user moves the mouse pointer into the object.

Syntax

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

Event information

Synchronous No
Bubbles Yes
Cancelable Yes

Event handler parameters

  • pEvtObj [in]
    Type: [IHTMLEventObj](aa703876(v=vs.85).md)

Standards information

Remarks

The event occurs when the user moves the mouse pointer into the object, and it does not repeat unless the user moves the mouse pointer out of the object and then back into it.

Initiates any action associated with this event.

To invoke this event, do one of the following:

  • Move the mouse pointer into an object.

See also

Reference

HTMLImgEvents2::onmousewheel

HTMLImgEvents2::onmousedown

HTMLImgEvents2::onmousemove

HTMLImgEvents2::onmouseout

HTMLImgEvents2::onmouseup

onmspointerhover

onmspointerover