Area.onMouseOut

JavaScript 1.1+, JScript 1.0+ Nav3+, IE 3+, Opera3+ Syntax

onMouseOut="command"

Description

The onMouseOut event handler associated with the Area object is invoked when the user moves the mouse pointer into the region defined by the <area> tag.

Example

Listing 7.14 creates a clothing site with a picture of a shirt. Clicking the shirt graphic takes you to a site about red shirts. If the mouse is moved out of the region, an alert box posts a message to the screen, thanks to the onMouseOut event handler.

Listing 7.14 Using the onMouseOut Property of the Area Object
 <html> <body> <h2>The Clothes Site</h2> <map name="clothesMap"> <area name="redShirt" coords="1,1,48,48" href="http://www.clothes.com/redShirts.html" target="_top" ...

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.