asp.net.ph

onmouseout Event

DHTML Events


Fires when the user moves the mouse pointer out of the object.

Syntax


Inline HTML <element onmouseout = "handler" ... > All platforms
Event property object.onmouseout = handler ECMA-262 Language Specification
Named script <script FOR=object EVENT=onmouseout> Internet Explorer® only

Remarks


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

A mouseout event occurs when the pointing device is moved away from an element. This event is valid for most elements.

When the user moves the mouse over an object, one onmouseover event occurs, followed by one or more onmousemove events as the user moves the pointer within the object. One onmouseout event occurs when the user moves the pointer out of the object.

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 use the onmouseout event to apply a new style to an object. The second demonstrates how to swap images on mouse events.

Sample Code


See Also

onmousedown, onmousemove, onmouseover, onmouseup




Contents
HTML Elements
HTML Element Attributes
CSS Attributes
DOM Objects
DOM Object Properties
DOM Events Reference
DOM Methods Reference
DOM Collections Reference
 

Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph