So I thought I would be a bit tricky with this CMS we have at work and remove some of the rubbish CSS style sheets that it spits out. jQuery to the rescue.
var cssRemove = "limbo.css"; $("link").each(function(){ if ($(this).attr("href").match(cssRemove)) $(this).remove(); }); Only to my dismay, I realize that this solution doesn't work in IE6. I trolled through the Interweb but couldn't really find any working solution so decided to give it a bit of a whirl and this solution seems to work for me. var cssRemove = "limbo.css"; $("link").each(function(){ if ($(this).attr("href").match(cssRemove)) $(this).attr("href", ""); }); I guess I wanted to share it with anyone else who encounters the same problem. Anyone know why this is happening? Does IE6 struggle to refresh the DOM when removing <link> and <script> tags?