Is it possible to change the CSS stylesheet using JavaScript?
I am NOT talking about:
document.getElementById('id').style._____='.....';
I AM talks about the change:
#id { param: value; }
in addition, something dirty (to which we have not tried to use btw yet), for example, creating a new object in the head, innerHTML style tag, etc. Although this, even if it really worked, would create several problems since the style block is already defined elsewhere, and Im not sure when / if the browser will even parse the dynamically created style block?
javascript html css stylesheet alter
anonymous-one Jul 08 '11 at 5:45 a.m. 2011-07-08 05:45
source share