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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access