JavaScript Reference/Javascript Properties/linkColor
Версия от 18:30, 25 мая 2010; (обсуждение)
"linkColor" 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>
"linkColor" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |document |
+----------------+--------------------------------------------------------------+
"linkColor" Syntax and Note
Note:
Read and write property.
Sets the link color.
"Link" property applies to the <body> element,
This property applies to the document object.
Value:
Web color name or hexadecimal value in #RRGGBB format.
Syntax:
document.linkColor = value