Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
2.3.2.6 fgColor

2.3.2.6 fgColor

fgColor of type DOMString

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

Possible values are the color name or RGB value. For more information, see [CSS-Level2-2009] section 4.3.6 Colors. Returns a six-digit hex value. The default value is #000000.

This is a DOM attribute only.

This attribute extends the HTMLDocument interface.

Show:
© 2015 Microsoft