July 1998
Intermediate to advanced
1456 pages
65h 5m
English
bgColor — NN 4 IE n/a DOM n/a
Read/Write
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.
document.myIlayer.bgColor = "yellow"
A hexadecimal triplet or plain-language color name. See Appendix A for acceptable plain-language color names.
Returned values are the decimal equivalent of the hexadecimal value.
A value of null sets the background to
transparent.
null (transparent).
Read now
Unlock full access