JavaScript Reference/Javascript Properties/vlinkColor

Материал из Web эксперт
Перейти к: навигация, поиск

"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>