JavaScript Reference/Javascript Properties/link
"link" Example
<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>
"link" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<body> |
+----------------+--------------------------------------------------------------+
"link" Syntax and Note
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