JavaScript Reference/Javascript Properties/aLink
Версия от 18:30, 25 мая 2010; (обсуждение)
"aLink" Example
<html>
<body onLoad="goColor();">
<script>
function goColor() {
document.body.aLink = "red";
}
</script>
<a href="http://www.wbex.ru/">wbex.ru (click to turn red)</a>
</body>
</html>
"aLink" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<body> |
+----------------+--------------------------------------------------------------+
"aLink" Syntax and Note
Note:
Read and write property.
Sets all active links" color.
Value:
Web color name or hexadecimal value in #RRGGBB format.
Syntax:
document.body.aLink = value
document.getElementById("bodyID").aLink = value
document.all.bodyID.aLink = value // IE only