Document: vlinkColor-Eigenschaft
Deprecated
Avoid using this feature in new projects. Document color attributes are superseded by CSS. This feature may be a candidate for removal from web standards or browsers.>
Consider using the following features instead: background-color, Color, CSS object model oder getComputedStyle().>
Die Document.vlinkColor-Eigenschaft holt/setzt die Farbe von Links, die der Benutzer im Dokument besucht hat.
Wert
Ein String, der die Farbe als Wort (z.B. "red") oder als hexadezimaler Wert (z.B. "#ff0000") darstellt.
Wenn der Wert auf null gesetzt wird, wird dieser null Wert in den leeren String ("") konvertiert, sodass document.vlinkColor = null gleichbedeutend ist mit document.vlinkColor = "".
Hinweise
- Der Standardwert für diese Eigenschaft in Mozilla Firefox ist Lila
(
#551a8bin Hexadezimal). Document.vlinkColorist in der HTML-Spezifikation veraltet.- Die empfohlene Alternative ist, die Farbe der CSS
:visitedPseudoklasse auf HTML<a>Elementen zu setzen (z.B.a:visited {color:red;}).
Spezifikationen
| Spezifikation |
|---|
| HTML> # dom-document-vlinkcolor> |