Javascript Reference
Categories: FONT

javascript FONT color

@July 1, 2009, 4:20 a.m.
color Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  
  Read/Write  

Sets the font color of all text contained by the font element.

 
Example
 
document.getElementById("myFont").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.