Forum Moderators: open
I'm not sure about the "official" position of a
setAttribute method for the style object - whether it actually exists (OK, it works in IE; I reckon it won't work in others). (If you asked me) I'd use either:
1. W3C DOM method..
blah.style.setPropertyValue("background-color","blue") 2. The "traditional"..
blah.style.backgroundColor = "blue"; #1 promises to be progressive, but it's not supported in IE5 (5.5?)