$('head').append('<link id="mylinkid" href="stylesheetpath"
rel="stylesheet">')
I dont think that works in IE because jQuery will wrap the link in a div
element. Which is not allowed in the head. FF seems ok with it even thou its
not correct. try this.
var __tag = document.createElement("script");
var __attribute = document.createAttribute("type");
__attribute.value = "text/javascript";
__tag.setAttributeNode(__attribute);
__attribute = document.createAttribute("src");
__attribute.value = "script_b.js";
__tag.setAttributeNode(__attribute);
document.getElementsByTagName("head")[0].appendChild(__tag);
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
--
View this message in context:
http://www.nabble.com/Attach-a-Style-Sheet-tf2418733.html#a6744689
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/