TOC PREV NEXT INDEX

Put your logo here!


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.


mozilla.org | mailto:oeschger | bug 93108
TOC PREV NEXT INDEX