[SOLVED] JavaScript style.backgroundColor gives RGB values
Posted: Sat Feb 05, 2005 5:36 pm
Hi,
I really need the hex code of the background color of an element but when outputting
in netscape/mozilla I get RGB(int,int,int) .... but in IE I get the hex code exactly the way it looks in the style tags.
Why does netscape do this and how can I get around it?
Cheers
I really need the hex code of the background color of an element but when outputting
Code: Select all
el.style.backgroundColorWhy does netscape do this and how can I get around it?
Cheers