DOM:document.fgColor
From MDC
Contents |
[edit] Summary
Deprecated
fgColor gets/sets the foreground color, or text color, of the current document.
[edit] Syntax
color = document.fgColor document.fgColor = color
[edit] Parameters
coloris a string representing the color as a word (e.g., "red") or hexadecimal value (e.g., "#ff0000").
[edit] Example
document.fgColor = "white"; document.bgColor = "darkblue";
[edit] Notes
The default value for this property in Mozilla Firefox is black (#000000 in hexadecimal).
document.fgColor is deprecated in DOM Level 2 HTML. The recommended alternative is the CSS property color (e.g., document.body.style.color = "red").
Another alternative is document.body.text, although this is deprecated in HTML 4.01 in favor of the CSS alternative above.
[edit] Specification
DOM Level 0. Not part of any standard.