JavaScript Reference/Javascript Properties/link
"link" Example
<source lang="javascript">
<html> <body onload="document.body.link = "blue";"> <script language="JavaScript"> function function1() {
document.linkColor = "green";
} </script> <a href="http://www.wbex.ru">wbex.ru Web page</a> <input type="button" value="Change the link color to green" onClick="function1();"> </body> </html>
</source>
"link" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<body> | +----------------+--------------------------------------------------------------+
</source>
"link" Syntax and Note
<source lang="javascript">
Note: Read and write property. Sets the color for <a> elements. Value: Web color name or hexadecimal value in #RRGGBB format.
Syntax:
document.body.link = value
</source>