JavaScript Reference/Javascript Properties/noHref — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:21, 26 мая 2010
Содержание
"noHref" Example
<html>
<head>
<script language="JavaScript">
function function2() {
document.all.area2.coords = "100, 0, 200, 50";
document.all.area2.noHref = "true";
}
</script>
</head>
<body>
<img src="yourimage.gif" id="myImg" alt="" width="200" height="100" usemap="#myMap2">
<map name="myMap2">
<area id="area2"
shape="rect"
href="http://www.wbex.ru" nohref="true"
alt="wbex.ru home page"
onClick="return false">
</map>
<br>
<button onclick="alert(area2.noHref);">noHref for Area 2</button>
</body>
</html>
"noHref" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<area> |
+----------------+--------------------------------------------------------------+
"noHref" Possible Values
Possible Values
true
false (the default).
"noHref" Syntax and Note
Note:
Read and write property.
Does a region in <area> element have effect?
Syntax:
document.getElementById("areaID").noHref = value
document.all.areaID.noHref = value // IE only