To make things a bit confusing, there are at least three different terms for the same thing.
In ASP.NET, things are called like this:
BackColor
ForeColor
etc
These names map to client side CSS properties, like back-color and color.
In JavaScript in turn, these items map to
backgroundColor
color
The rule of thumb with the conversion between CSS and JavaScript is:
start with a lower case, remove dashes and start each word after a dash with a capital letter.
So, background-color becomes backgroundColor, font-weight becomes fontWeight and so on.
To cut a long story short: you need backgroundColor.
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004