document Properties Object Properties Summary
Sets or retrieves the color of the document links.
HTML |
N/A |
Script |
document.linkColor [ = sColor ] |
sColor |
String containing one of the color names or values given in the Color Table. |
The property is read/write with a default value of "#0000ff', and is the returned value if the property has not been set.
The linkColor property can be set through the BODY's onload event, though the link property cannot.
This example code fragment assigns the document's link color to a variable named lColor and displays it in a message box.
lColor = document.linkColor;
alert ( "Links color is set to " + lColor )
Show me
document
alinkColor, vLinkColor