fgColor

This property is used to set the foreground or text color for the document. The value for the color can be a decimal RGB, hexadecimal #RRGGBB, or a named color value.

syntax:

document.fgColor = "value"

This Property is used to access attributes of the following:

document