asp.net.ph

Skip Navigation Links

onmouseover Event


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

Syntax

Inline <element onmouseover = "handler" ... >
Script object.onmouseover = handler

Remarks

Bubbles Yes
Cancels Yes
To invoke Move the mouse pointer over an object.
Default action Initiates any action associated with this event.

A mouseover event occurs when the pointing device first enters the object and does not repeat unless the user moves the pointer out of the object and then back into it.

This event is valid for most elements.

Event Object Properties

While event handlers in the Document Object Model do not receive parameters directly, the handler can query the event object for data.

Event Object Properties


Example

The first example shows how to change the value of a text area in response to mouse events. The second demonstrates how to use the onmouseover event to apply a new style to an object.

Sample Code


See Also

onmousedown, onmousemove, onmouseout, onmouseup


Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

If you have any question, comment or suggestion,
please send us a note