이미지의 usemap 속성 값을 가져오려면 useMap을 사용하세요. 재산. 다음 코드를 실행하여 usemap 속성 값을 표시할 수 있습니다. -
예시
<!DOCTYPE html>
<html>
<body>
<img id = "myid" src = "/images/html.gif" alt = "HTML Map" usemap = "#html"/>
<map name = "html">
<area id = "myarea" shape = "circle" coords = "154,150,59" href = "about.htm" alt = "Team" >
</map>
<script>
var x = document.getElementById("myid").useMap;
document.write("<br>Usemap: "+x);
</script>
</body>
</html>