Availability: |
| ||||||||
Property/method value type: | Color value | ||||||||
JavaScript syntax: | - | myDocument.alinkColor | |||||||
- | myDocument.alinkColor = aColorValue | ||||||||
HTML syntax: | <BODY ALINK="aColorValue"> | ||||||||
Argument list: | aColorValue | A hex color value or color name |
This value controls the text of active links in the document body. You should use the normal color values to define the required color.
This property is equivalent to the ALINK attribute of the <BODY> HTML tag. This is color that is used while the mouse is over the link and the button is held down by the user.
Now that the style control facilities are more sophisticated, this tag attribute is likely to fall into disuse. On the other hand it does work consistently on both MSIE and Netscape where style sheet controls do not.
The DOM level 1 standard deprecates the usage of this property in favor of BODY.aLink instead.
This property can only be changed from JavaScript in the <HEAD> section. You cannot modify it after the <BODY> has commenced loading.
Prev | Home | Next |
Document.activeElement | Up | Document.all[] |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |