HTML DOM 맵 객체
지도 개체
Map 객체는 HTML <map> 요소를 나타냅니다.
지도 개체에 액세스
getElementById()를 사용하여 <map> 요소에 액세스할 수 있습니다.
예시
var x = document.getElementById("myMap");
지도 개체 만들기
document.createElement() 메서드를 사용하여 <map> 요소를 만들 수 있습니다.
예시
var x = document.createElement("MAP");
객체 컬렉션 매핑
Collection | Description |
---|---|
areas | Returns a collection of all <area> elements in an image-map |
images | Returns a collection of all <img> and <object> elements associated with the image-map |
지도 개체 속성
Property | Description |
---|---|
name | Sets or returns the value of the name attribute of an image-map |
표준 속성 및 이벤트
관련 페이지
HTML DOM 참조: Area 객체
HTML 참조: HTML <map> 태그
HTML 참조: HTML <area> 태그