propiedad HTML DOM Área NOHREF
Definición y Uso
NOHREF nohref conjuntos de propiedades o devuelve el valor de la propiedad de una región.
nohref atributo especifica no es una zona enlaces relacionados.
Consejo: nohref atributo le dice al explorador de propiedades de hipervínculo no existe.No se puede utilizar el atributo href a un conjunto más simple no hay enlaces relacionados.
gramática
areaObject.noHref=true|false
Soporte para el navegador
Además de navegador Internet Explorer, todos los navegadores soportan la propiedad NOHREF.
Ejemplos
Ejemplos
El ejemplo siguiente devuelve el mapa de imágenes área Propiedades "NOHREF" "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>
Los ejemplos de la salida anterior:
Value of nohref attribute for the "Venus" area is: true
Trate »
objetos de área