HTML DOM 지역 noHref 속성
정의 및 사용
noHref nohref 속성 집합 또는 영역의 속성 값을 반환합니다.
nohref 속성은 지역되지 관련 링크를 지정합니다.
팁 : 속성 브라우저에 지시 nohref하이퍼 링크 속성이 존재하지 않습니다. 당신은 간단한 설정하는 관련 링크를 href 속성을 사용할 수 없습니다.
문법
areaObject.noHref=true|false
브라우저 지원
IE 브라우저뿐만 아니라, 모든 주요 브라우저는 noHref 속성을 지원합니다.
예
예
다음 예제는 이미지 맵 "noHref"속성 "비너스"영역을 반환합니다 :
<html>
<body>
<img src="planets.gif"
width="145" height="126"
usemap="#planetmap">
<map name="planetmap">
<area id="venus" shape="circle"
coords="124,58,8"
alt="Venus"
href="venus.htm"
nohref="nohref">
</map>
<p>Value of nohref attribute for the "Venus" area is:
<script>
document.write(document.getElementById("venus").noHref);
</script>
</p>
</body>
</html>
<body>
<img src="planets.gif"
width="145" height="126"
usemap="#planetmap">
<map name="planetmap">
<area id="venus" shape="circle"
coords="124,58,8"
alt="Venus"
href="venus.htm"
nohref="nohref">
</map>
<p>Value of nohref attribute for the "Venus" area is:
<script>
document.write(document.getElementById("venus").noHref);
</script>
</p>
</body>
</html>
위의 출력의 예 :
Value of nohref attribute for the "Venus" area is: true
»시도
지역 객체