This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.



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

Overview Table

Synchronous No
Bubbles Yes
Target dom/Element
Cancelable Yes
Default action none
## Examples

This example uses the onmouseover event to apply a new style to an object.

        Move the mouse pointer over this text to change its color. Move the pointer off the text
        to change the color back.

This example shows how to change the value of a text area in response to mouse events.

<p>Move the mouse pointer into the text area to fire the onmouseover event. Move
it out to clear the text.
<textarea name="txtMouseTrack"
    onmouseover="this.value='onmouseover fired'"

View live example



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.


Standards information

Event handler parameters

pEvtObj [in]
Type: ****IHTMLEventObj****