JavaScript Reference/Javascript Properties/vlinkColor

Материал из Web эксперт
Версия от 11:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"vlinkColor" Example

   <source lang="javascript">
   

<html> <body> <a href="http://www.wbex.ru" target="_blank">wbex.ru Home Page</a> <script language="JavaScript">document.vLinkColor = "orange"; </script> </body> </html>


     </source>
   
  


"vlinkColor" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |document | +----------------+--------------------------------------------------------------+

     </source>
   
  


"vlinkColor" Syntax and Note

   <source lang="javascript">

Note: Read and write property. Sets the text color of all visited <a> elements. Similar to the vLink property, except that vlinkColor affects the document object rather than the <body> element.

Value: Web color name or hexadecimal value in #RRGGBB format.


Syntax:

document.getElementById("elementID").vlinkColor = value document.all.elementID.vlinkColor = value // IE only


     </source>