Layer.bgColor (Property)

The background color of a layer.


JavaScript - 1.2
Netscape - 4.0
Property/method value type:String primitive
JavaScript syntax:NmyLayer.bgColor

The background can be colored independently of whether an image is loaded into the background of an object. In fact it may be advisable to set the background color to something similar to the average color of the background image in case the image takes a long time to load or the browser is unable to display a background image. The color can be set using a Hexadecimal triplet, or a plain language color value. The default is a transparent background.


See also:Color names, Color value