JavaScript Reference/Javascript Properties/vLink — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
"vLink" Example
<source lang="javascript">
<html> <body>
<a href="http://www.wbex.ru" target="_blank">wbex.ru Home Page</a> <script language="JavaScript">document.body.vLink = "gold";</script>
</body> </html>
</source>
"vLink" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<body> defaults | +----------------+--------------------------------------------------------------+
</source>
"vLink" Syntax and Note
<source lang="javascript">
Note: Read and write property. Sets the text color of all visited <a> elements.
Value: Web color name or a hexadecimal value in #RRGGBB format.
Syntax:
document.body.vLink = value document.getElementById("bodyID").vLink = value document.all.bodyID.vLink = value // IE only
</source>