javascript STYLE backgroundColor
@Aug. 17, 2009, 8:45 a.m.
backgroundColor | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 2 |
|
Read/Write |
Provides the background color of the element. If you also set a backgroundImage, the image overlays the color. Transparent pixels of the image allow the color to show through. |
|
Example | |
document.getElementById("highlighted").style.backgroundColor = "yellow"; |
|
Value | |
Any valid color specification or transparent. |
|
Default | |
transparent |
Permanent URL:
http://javascript.gakaa.com/style-backgroundcolor.aspx
Powered by Linode.
in bookmarked :)