JavaScript basics
document.linkColor
The document.linkColor property is used to get or set the link color in the document.
Document.linkColor basic syntax
Get color color = document.linkColor; set color document.linkColor = color
The color can be a solid color (such as red, blue, yellow...) or a color code color (such as #CCCCCC, #0033CC...).
document.linkColor usage example
document.linkColor = blue
However, because CSS design is now in the lead, the layout design is indeed easier than JavaScript, the syntax is simple and easy to manage, so CSS should be the main design bulk at present, and document.linkColor is abandoned in In DOM Level 2 HTML [Note 1 ] In other words, document.linkColor is actually outdated. If you want to design or modify the link color of the layout, it is recommended to use CSS syntax.
Document.linkColor related notes
- For the document.linkColor deprecation message, please refer to the W3C description deprecated in DOM Level 2 HTML
Post a Comment
0 Comments