Forum Moderators: open
I have a CSS file that sets value for various attributes on different elements. In this case, the elements themselves do not exist in the HTML file, but if need be I can put them in and wrap with with a "display: none" div. What I'm trying to do is, for example, take an element and try to access the value of a style settings in such a way:
document.config.tablebg.value = document.getelementbyid("quicklinktable").style.backgroundColor;
I've tried backgroundColorname, but its undefined when the color is set in the CSS file as "red". I don't know if this is even possible, the ultimate goal is to have the input fields default to the current setting.