Javascript Reference
Categories: TD

javascript TD borderColor

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


Provides 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.

document.getElementById("myTD").borderColor = "salmon";

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.


Varies with operating system.

Powered by Linode.