javascript document fgColor
@March 15, 2008, 1:22 a.m.
fgColor | Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM n/a |
|
Read/Write |
Provides the foreground (text) color for the document. While you can change this property in all versions of Navigator, the text does not change dynamically in versions prior to 6. Still supported in current browsers, this property is replaced in IE 4 and Netscape 6 by document.body.text or style sheet settings. |
|
Example | |
document.fgColor = "darkred"; |
|
Value | |
A hexadecimal triplet or plain-language color name. See Appendix A for acceptable plain-language color names. |
|
Default | |
Browser default (usually black). |
Permanent URL:
http://javascript.gakaa.com/document-fgcolor.aspx
Powered by Linode.