TOC PREV NEXT INDEX

domref



fgColor


fgColor gets/sets the foreground color, or text color, of the current document.

Syntax

color = document.fgColor
 
document.fgColor = color
 

Parameters

color is a string representing the color as a word (e.g., "red") or as an octal value, as in HTML (e.g., "#eee").

Example

document.fgColor = "white";
 
document.bgColor = "darkblue";
 

Notes

None.

Specification

DOM Level 0. Not part of specification.


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX