Is it possible in javascript to get a value that was set by a CSS style sheet? Aparently this should be possible but it doesnt seem to be working.
I setup a loop to check all elements on the page.
Code:
for(i=0;i<document.all.length;i++){
alert(document.all[i].id+' '+document.all[i].className+' '+document.all[i].style.cssText);
}
I can see that it is looping through my elements correctly. When i see a class name appear i thought i should see css text too. It doesnt seem to work. I know there is CSS there because the page displays properly. The strange thing is that i do see some CSS values but not always for elements which i have set a class for

.