Area.onDblClick

JavaScript 1.1 Nav3, IE 4 Syntax

onDblClick="command"

Description

The onDblClick event handler associated with the Area object is invoked when the user double-clicks the mouse pointer while in the region defined by the <area> tag.

Example

Listing 7.13 creates a clothing site with a picture of a shirt. Double-clicking the shirt displays a message about red shirts, thanks to the onDblClick event handler.

Listing 7.13 Using the onDblClick Property of the Area Object
 <html> <body> <h2>The Clothes Site</h2> <map name="clothesMap"> <area name="redShirt" coords="1,1,48,48" target="_top" onDblClick="alert('You must like red shirts.')"> </map> <img src="clothes.gif" align="top" height="100" width="100" usemap="#clothesMap"> </body> ...

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.