ForeColor

HTML (DHTML)

ForeColor Command

Internet Development Index

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 toexecCommandqueryCommandEnabledqueryCommandIndetermqueryCommandStatequeryCommandSupportedqueryCommandValue.

Remarks

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

Standards Information

There is no public standard that applies to this command.

Minimum Availability

Internet Explorer 4.0 and later.