View Single Post
Old May 23rd, 2006, 7:20 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
You can set the style, too, but script uses different terminology. You would use:

myObject.style.backgroundColor = "#000000";

In the general case, you remove the hyphen and capitalize the word following.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote