asp.net.ph

Skip Navigation Links

linkColor Property

document Properties   Object Properties Summary


Sets or retrieves the color of the document links.

Syntax


HTML N/A
Script document.linkColor [ = sColor ]

Possible Values


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.

Remarks

The linkColor property can be set through the BODY's onload event, though the link property cannot.

Example

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 

Applies To

document

See Also

alinkColor, vLinkColor



>

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note