controlling css with javascript works with mozilla but not with webkit based browsers
- by GlassGhost
Im having problems with applying css text variable in this javascript with webkit based browsers(Chrome & Safari) but it works in firefox 3.6
the function:
function addGlobalStyle(sCss) {
var head = document.getElementsByTagName('head')[0];
if( !head || head == null ) { return false; }
var oStyle = document.createElement('style');…