Event.MOUSEOUT

JavaScript 1.1+, JScript 3.0+ Nav3+, IE 4+, Opera3+ Syntax

Event.MOUSEOUT

Description

The MOUSEOUT property of the Event object is used by links and document layers to indicate when the focus of the mouse cursor is moved away from an object.

Example

Listing 7.231 shows how the onMouseOut event handler is used to catch the MOUSEOUT event that occurs when the mouse cursor is removed from a HTML link.

Listing 7.231 Using the MOUSEOUT Property
<html>
<head>
<title>Example of Event.MOUSEOUT</title>
</head>
<body>

<a href="http://www.microsoft.com" onMouseout = 'alert("The mouse has moved out
of the area of this link")'>
Microsoft Website</a>

</body>
</html>
							
							
						

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.