javascript TD bgColor
| bgColor | NN 6 IE 4 DOM 1 |
| Read/Write | |
|
Provides the background color of the table cell. 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("myTD").bgColor = "yellow";
|
|
| Value | |
A hexadecimal triplet or plain-language color name. See Appendix A for acceptable plain-language color names. |
|
| Default | |
Varies with browser and operating system. |
|
Previous: javascript TD blur( )
Next: javascript TD background
2037,Nickname,Homepage or email,Comments here,Add comment
