| Availability: |
| |||||||
| Deprecated: | Yes | |||||||
| Property/method value type: | String primitive | |||||||
| JavaScript syntax: | - | myString.fontcolor() | ||||||
| - | myString.fontcolor(aColor) | |||||||
| Argument list: | aColor | A color value to embed as an HTML tag attribute | ||||||
Passing in the string "Colored text" with the parameter "RED" will result in the following string:
<FONT COLOR="RED">ABCD</FONT>
This is now deprecated in favor of the more sophisticated controls available with style sheets.
| See also: | FONT.color, style.color |
| Prev | Home | Next |
| String.fixed() | Up | String.fontsize() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. | ||