Javascript Reference
Categories: STYLE

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

fine site. shortly and usefull. Thanks!
in bookmarked :)
vlad - 2012-05-14

Powered by Linode.