fgColor

HTML (DHTML)

fgColor Property

Internet Development Index

Sets or retrieves the foreground (text) color of the document.

Syntax

document.fgColor(v) [ = vColor ]

Possible Values

vColorVariant that specifies or receives one of the color names or values in the Color Table.

The property is read/write. The property has a default value of #000000.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Standards Information

There is no public standard that applies to this property.

Applies To

document

See Also

color, text