August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onDblClick="command"
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.
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.
<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> ... |
Read now
Unlock full access