software






 

Question by  anniepc (17)

In Javascript, how do I make the text area a different color?

 
+6

Answer by  drtew (8)

You must have a reference to the text area's DOM object. To change the font color, set the style attributes color field to a color value. To set the background color set the style attributes background Color field to a color value. Example: area. style. color = "red".

 
You have 50 words left!