Javascript Reference
Categories: TR

javascript TR borderColor

@March 15, 2008, 1:22 a.m.
borderColorFirefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

Read/Write  

Specifies the color of the element's border. Internet Explorer applies the color to all four lines that make up the interior border of a cell. Therefore, colors of adjacent cells do not collide.

 
Example
 
document.getElementById("myTR").borderColor = "salmon";
 
Value

A hexadecimal triplet or plain-language color name. A setting of empty is interpreted as "#000000" (black). See Appendix A for acceptable plain-language color names.

 
Default

Varies with operating system.


Powered by Linode.