View Full Version : style - button border color changing

04-03-2003, 06:42 AM
I'm trying to change the color of the button's border from a script. I have the button and the border-color feature of it's style attribute, but I cannot seem to affect it from scripts other than to make it disappear.

I'm working in IE6, and the netscape version is also pending, so I need both where I can get them.

so far, the following fail to accomplish my goal:


Any other suggestions? Thanks in advance.

04-03-2003, 07:13 AM
style.borderColor with a capital "C"

04-03-2003, 09:12 PM
thanks x_goose_x, it's exactly what I was looking for. Fully appreciate it. :thumbsup:

04-03-2003, 09:14 PM
Any style attribute that is spelled out with a hyphen as a rule, needs to be camelCased for it to be accessed as a property

font-size becomes fontSize
border-color becomes borderColor
background-image becomes backgroundImage


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum