영역 대상 속성
예시
이미지 맵의 특정 영역에 대한 대상 변경:
document.getElementById("venus").target = "_blank";
정의 및 사용
target 속성은 영역의 target 속성 값을 설정하거나 반환합니다.
target 속성은 링크된 문서를 열 위치를 지정합니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
target | Yes | Yes | Yes | Yes | Yes |
통사론
대상 속성을 반환합니다.
areaObject.target
대상 속성을 설정합니다.
areaObject.target = "_blank|_self|_parent|_top|framename"
Value | Description |
---|---|
_blank | Open the linked document in a new window |
_self | Open the linked document in the same frame as it was clicked (this is default) |
_parent | Open the linked document in the parent frameset |
_top | Open the linked document in the full body of the window |
framename | Open the linked document in a named frame |
기술적 세부 사항
반환 값: | 연결된 문서를 열 위치를 나타내는 문자열 |
---|
더 많은 예
예시
이미지 맵에서 특정 영역의 대상 가져오기:
var x =
document.getElementById("venus").target;
관련 페이지
HTML 참조: HTML <area> 대상 속성
❮ 영역 개체