carly31
3/6/2018 - 6:52 AM

add Link Tag on Runtime

var addLink = function(url){
    var link = document.createElement('link');
    link.href = url;
    link.rel = 'stylesheet';
    link.type = 'text/css'; // no need for HTML5
    \!h document.getElementsByTagName('head')[0].appendChild(link); // for IE6
};