अवलोकन
usemap एट्रिब्यूट का मान प्राप्त करने के लिए useMap प्रॉपर्टी का उपयोग करें। यह क्लाइंट-साइड इमेज मैप को सक्षम करता है।
उदाहरण
<!DOCTYPE html> <html> <body> <img id="myid" src = "/images/html.gif" alt = "HTML Map" border = "0" usemap = "#html"/> <map name = "html"> <area id="myarea" shape = "circle" coords = "154,150,59" href = "about.htm?id=company" alt = "Team" target = "_self" > </map> <script> var myVal = document.getElementById("myid").useMap; document.write("<br>Usemap value: "+myVal); </script> </body> </html>