fgColor property

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

Syntax

JavaScript

p = object.fgColor

Property values

Type: Variant

one of the color names or values in the Color Table.

#000000

Default value.

Remarks

Change this property before the document is rendered to change the displayed color. The default foreground color is browser-specific.

See also

document
Reference
color
text

 

 

Show:
© 2014 Microsoft