JavaScript basics
document.alinkColor
document.alinkColor is used to set or get the color of the hyperlink in the document during the action, similar to the a:hover monitoring in CSS .
Basic syntax of document.alinkColor
Get color color = document.alinkColor; set color document.alinkColor = color
The color can be a solid color (such as red, orange, gray...) or a color code color (such as #000000, #003399...).
document.alinkColor usage example
document.alinkColor = "#FFFFFF"
The example means that the color of the hyperlink when the action occurs is set to white, #FFFFFF is the white code in the color code. The function of document.alinkColor has been replaced by CSS properties and abandoned in DOM Level 2 HTML [Note 1] . In the future, if you want to set the color of text link actions, please use CSS properties.
Document.alinkColor related notes
- For information about document.alinkColor deprecation, please refer to the description on W3C deprecated in DOM Level 2 HTML
Post a Comment
0 Comments