From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript String Object
The fontcolor() method is used to display a string in a specified color.
| stringObject.fontcolor(color) |
| Parameter | Description |
|---|---|
| color | Required. Specifies a color. The value can be a color name (red), an RGB value (rgb(255,0,0)), or a hex number (#FF0000) |
ExampleDisplay the text in red:
Try it yourself » |
JavaScript String Object
From http://www.w3schools.com (Copyright Refsnes Data)