I have the following javascript:
css = document.createElement('style'); css.setAttribute('type', 'text/css'); css_data = document.createTextNode(''); css.appendChild(css_data); document.getElementsByTagName('head')[0].appendChild(css);
for some reason, in IE only, it chokes on ‘css.appendChild(css_data);’ Giving the error: ‘Unexpected call to method or property access’
What’s going on?
Try instead: