Javascript Reference
Categories: HR

javascript HR color

@July 1, 2009, 4:22 a.m.
color Firefox/Netscape/NN n/a IE 4 Chrome/Safari/DOM n/a  

 

Read/Write  

Sets the color scheme of the horizontal rule. If the rule is rendered in 3-D, complementary colors are automatically assigned to the shaded area.

 
Example
 
document.getElementById("myHR").color = "red";
 
Value

Case-insensitive hexadecimal triplet or plain-language color name as a string. See acceptable plain-language color names.

 
Default

Browser default.


Powered by Linode.