Sets the background color behind an object.
Syntax
HTML |
<ELEMENT BGCOLOR=sColor ... >
|
---|
Scripting | N/A |
---|
Possible Values
sColor | A String that specifies one of the color names or RGB values in the Color Table. |
Remarks
Microsoft JScript supports the entire set of colors as color names and as the corresponding RGB values. However, JScript always returns the property as a string specifying the RGB color value, regardless of the format the value was set to.
Some browsers do not recognize color names; but all browsers should recognize RGB color values and display them correctly.
Standards Information
This attribute is a Microsoft extension to
HTML and
is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
See Also
background, bgColor