JavaScript Tutorial/Document/linkColor

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

document.linkColor

The linkColor property specifies the color of unvisited links.

The color is expressed as a string in hexadecimal digits or as one of the JavaScript standard color names.

The hexadecimal form is made up of 6 digits that follow the pattern "RRGGBB."



   <source lang="javascript">

<html>

   <a href="http://www.wbex.ru">wbex.ru</a>
<script language="JavaScript"> </script> <a href="http://www.wbex.ru">wbex.ru</a> </html></source>

document.linkColor in action

   <source lang="javascript">

<HTML> <head> <title>this is a title</title> </head> <BODY bgcolor="beige" text= "black" link="darkblue" vlink="honeydew"> <SCRIPT language="JavaScript">

</SCRIPT> </BODY> </HTML></source>