How to change .css priority with javascript

sodobuissulty

New Member
I need to change priority of loaded .css files using javascript. I found that i can do this just by replacing position of < link rel="stylesheet".... >tag in the head element. This solution works fine in all browsers except IE. I am using the following code for this:\[code\]var firstCss = styleSheets[0].ownerNode;var defaultCss = styleSheets[1].ownerNode;firstCss.parentNode.insertBefore(defaultCss, firstCss);\[/code\]So is there a better solution for such issue, or maybe somebody know how to make this code work under IE.
 
Back
Top