Wondering whether anybody knows a workaround for Opera 7 to be able to reference CSS files via JavaScript.
eg.
IE5+:
alert(document.styleSheets);
alert(document.styleSheets[0]);
alert(document.styleSheets[0].rules);
alert(document.styleSheets[0].rules[0])...
hmmm hmmm...
And it seems I *didn't* answer my question after all. :
I do believe I have to elaborate my predicament to everybody else, as well as myself:--
When a page loads, the CSS is correctly referenced like it should when the page is generated by the Browser.
If you try to reference the...
hmm...
Seems I didn't write the code properly, and it also seems I had the answer all along. :
But in any case, thanks for your efforts HellTel.
First of all for eg3, I wrongly stated the wrong attribute to output-- color instead of backgroundColor.
Basically the main issue though is that you...
Try 'onPropertyChange'.
This handler will fire immediately upon modification of the tag to which it has been defined.
This is probably only IE-only. Haven't bothered testing this in Nutscr... I mean Netscape.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.