fontcolor Method
Description
Places the HTML <FONT COLOR> tag around the text in the object.Syntax
strVariable.fontcolor( colorval )
"String Literal".fontcolor( colorval )
Arguments
colorval: A string containing the color value desired. This can either be the hexadecimal value for the color, or a predefined name for a color.
Remarks
Below is an example of the effects of the fontcolor method:
var strVariable = "This is a string object" strVariable.fontcolor("red")The value of strVariable after the last statement above is: <FONT COLOR="RED">This is a string object</FONT>
Vaild predefined color names will differ depending on your JScript host (Browser, server, etc.) They may also vary from version to version. Check your host documentation for more information.
No checking is done to see if the tag already exists in the object.