JavaScript Reference/Javascript Properties/alinkColor

Материал из Web эксперт
Перейти к: навигация, поиск

"alinkColor" Example

    
<html>
<body onLoad="goColor();">
<script>
    function goColor() {
        document.alinkColor = "red";
    }
</script>
<a href="http://www.wbex.ru/">wbex.ru Link: click to turn red</a>
</body>



"alinkColor" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |document                                                      |
+----------------+--------------------------------------------------------------+



"alinkColor" Syntax and Note

Note:
Read and write property. 
Sets the all active links" color. 
This property applies to the document object, whereas 
the aLink property applies to the <body> element. 

Value: 
Web color name or hexadecimal value in #RRGGBB format.
    
Syntax:
    
document.alinkColor = value