Name
USEMAP — NN all IE all HTML 3.2
Synopsis
USEMAP=”mapURL"
Optional
You can define a client-side image map with the help of the
MAP
and AREA
elements. The
MAP
element is a named container for one or more
AREA
element. Each AREA
element
sets a “hot” area on an image and assigns a link
destination (and other settings) for a response to the user clicking
in that region. The purpose of the USEMAP
attribute is to establish a connection between the
IMG
element and a named MAP
element in the same document. In some respects, the
MAP
element’s name is treated like an anchor
in that the “address” of the MAP
element is the element’s name preceded by a
#
symbol.
Example
<IMG SRC="navbar.gif" USEMAP="#navigation" HEIGHT=90 WIDTH=120>
Value
A URL to the MAP
element in the same document (a
hash symbol plus the MAP
name).
Default
None.
Object Model Reference
- IE
[window.]document.imageName.useMap
[window.]document.images[i].useMap
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.