Properti HTML DOM di Area noHref
Definisi dan Penggunaan
noHref nohref set properti atau mengembalikan nilai properti suatu daerah.
Atribut nohref menentukan daerah yang tidak link terkait.
Tip: nohref atribut memberitahu browser properti Hyperlink tidak ada.Anda tidak dapat menggunakan atribut href untuk satu set sederhana tidak ada link terkait.
tatabahasa
areaObject.noHref=true|false
Dukungan Browser
Selain browser IE, semua browser utama mendukung properti noHref.
contoh
contoh
Contoh berikut mengembalikan gambar peta "noHref" Properties "Venus" area:
<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>
Contoh output di atas:
Value of nohref attribute for the "Venus" area is: true
Coba »
benda daerah