I know I must be missing something here, but I cannot seem to get this to work.
I have assigned a background color to the body of an html document using the style ta
Here is a function you can use (without the use of a framework ie) that was posted here by InsDel:
function getStyle(className) { var classes = document.styleSheets[0].rules || document.styleSheets[0].cssRules for(var x=0;x