text attribute | text property

Sets or gets the text (foreground) color for the document body.

Syntax

HTML<element text="p" ... >
JavaScript

p = object.text

Property values

Type: Variant

any of the color names or values in the Color Table.

Standards information

Examples

This example uses the text property to change the text color of the body.


<BODY ID="oBody">
:
<BUTTON onmouseover="oBody.text='green'">GREEN</BUTTON>
<BUTTON onmouseover="oBody.text='red'">RED</BUTTON>
<BUTTON onmouseover="oBody.text='blue'">BLUE</BUTTON>

See also

body

 

 

Build date: 10/15/2012

Show:
© 2014 Microsoft. All rights reserved.