Name
<MAP> — NN all IE all HTML 3.2
Synopsis
<MAP>...</MAP>
End Tag: Required
A MAP
element is a container for AREA
elements that
define the location and links of hotspots of client-side image maps.
The primary purpose of the MAP
element is to
associate an identifier (the NAME
attribute) that
the USEMAP
attribute points to when turning an
IMG
element into a client-side image map. Most
other attributes are style-related and may be applied to the
MAP
element so that they are inherited by elements
nested within.
Example
<IMG SRC="images/logo.gif" ALT="Scroll to the bottom for navigation links." HEIGHT=300 WIDTH=250 USEMAP="#navigation"> <MAP NAME="navigation"> <AREA SHAPE="rect" COORDS="0,0,100,100" HREF="products.html"> <AREA SHAPE="rect" COORDS="0,100,300,100" HREF="support.html"> </MAP>
Object Model Reference
- IE
[window.]document.all.elementID
Attributes
|
|
|
|
|
|
|
|
Event Handler Attributes
Handler |
NN |
IE |
HTML |
---|---|---|---|
onClick |
n/a |
4 |
4 |
onDblClick |
n/a |
4 |
4 |
onDragStart |
n/a |
4 |
n/a |
onHelp |
n/a |
4 |
n/a |
onKeyDown |
n/a |
4 |
4 |
onKeyPress |
n/a |
4 |
4 |
onKeyUp |
n/a |
4 |
4 |
onMouseDown |
n/a |
4 |
4 |
onMouseMove |
n/a |
4 |
4 |
onMouseOut |
n/a |
4 |
4 |
onMouseOver |
n/a |
4 |
4 |
onMouseUp |
n/a |
4 |
4 |
onSelectStart |
n/a |
4 |
n/a |
Get Dynamic HTML: The Definitive Reference 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.