text property
Sets or gets the text (foreground) color for the document body.
Syntax
HRESULT value = object.put_text( v);HRESULT value = object.get_text(* p);
Property values
Type: VARIANT
any of the color names or values in the Color Table.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 7.5.1 (Deprecated)
Remarks
Some browsers do not recognize color names, but all browsers should recognize RGB color values and display them correctly.