domingo, 10 de febrero de 2013

Load CSS file Dynamically

function loadCSSFileDymanically(dir){
var link = document.createElement(“link”);
link.rel = "stylesheet";
link.type = "text/css";
link.href = dir;
var head = document.getElementsByTagName(“head”)[0];
head.appendChild(link);
}

No hay comentarios:

Publicar un comentario