ForeColor Command

Sets or retrieves the foreground (text) color of the current selection.

Scripting Information

Command ForeColor
User interface None. Set bUserInterface to false. 
execCommand vValue Required. String that specifies a color name or a six-digit hexadecimal RGB value, with or without a leading hash mark, as defined in the Color Table.
Applies to execCommandqueryCommandEnabledqueryCommandIndetermqueryCommandStatequeryCommandSupportedqueryCommandValue.


The HTML generated by this command may vary depending on the version of Windows Internet Explorer.

Minimum Availability

Internet Explorer 4.0 and later.