Javascript Reference
Categories: layer

javascript layer bgColor

@July 1, 2009, 4:29 a.m.
bgColor NN |4| IE n/a Chrome/Safari/DOM n/a  

 

Read/Write  

Provides the background color of the element. While you may set the value with either a hexadecimal triplet or plain-language color value, values returned from the property are for some reason the decimal equivalent of the hexadecimal RGB version. The default behavior is a transparent background created with a bgColor property value of null.

 
Example
 
document.myIlayer.bgColor = "yellow";
 
Value

A hexadecimal triplet or plain-language color name.  Returned values are the decimal equivalent of the hexadecimal value. A value of null sets the background to transparent.

 
Default

null (transparent).


Powered by Linode.