hi everyone,
i have a litte probleme with CSS modification on Internet Explorer. When i add an new CSS style in , IE don't reload the page with the new CSS injected. But when I change CSS property of an element it's works ! (This code work perfectly on Firefox !!!)
do you have any idea to do that the head modification work ?
if(document.createStyleSheet){
document.createStyleSheet('http://www.xxxx.com/style.css');
}else{
newnode=document.createElement('link');
newnode.id='newStyle';
newnode.media="all";
newnode.rel="stylesheet";
newnode.type="text/css";
newnode.href='http://www.xxxx.com/style.css';
document.getElementsByTagName('head')[0].readOnly=false;
document.getElementsByTagName('head')[0].appendChild(newnode);
}