Javascript Reference
Categories: TR

javascript TR bgColor

@July 1, 2009, 4:27 a.m.
bgColor Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

 

Read/Write  

Specifies the background color of the table cells in the current row. This color setting is not reflected in the style sheet backgroundColor property. Even if the bgcolor attribute or bgColor property is set with a plain-language color name, the returned value is always a hexadecimal triplet.

 
Example
 
document.getElementById("myTR").bgColor = "yellow";
 
Value

A hexadecimal triplet or plain-language color name.

 
Default

Varies with browser and operating system.


Powered by Linode.