Obiekt HTML DOM Powierzchnia nohref
Definicja i Wykorzystanie
nohref nohref zestawy własności lub zwraca wartość właściwości regionu.
atrybut nohref określa obszar nie powiązane linki.
Wskazówka: nohref atrybutu informuje przeglądarkę nieruchomość hiperłącza nie istnieje.Nie można użyć atrybutu href do prostszych żadnych odnośników.
gramatyka
areaObject.noHref=true|false
Pomoc Browser
W dodatku do przeglądarki IE, wszystkie główne przeglądarki obsługują właściwość nohref.
Przykłady
Przykłady
Poniższy przykład zwraca obraz mapy Właściwości "nohref" Obszar "Venus":
<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>
Przykłady wyżej wyjścia:
Value of nohref attribute for the "Venus" area is: true
Spróbuj »
obiekty w okolicy: