Created
October 20, 2015 15:49
-
-
Save fgilio/d6a79fc8808a88506ced to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function loadcssfile(filename){ | |
var fileref=document.createElement("link") | |
fileref.setAttribute("rel", "stylesheet") | |
fileref.setAttribute("type", "text/css") | |
fileref.setAttribute("href", filename) | |
document.getElementsByTagName("head")[0].appendChild(fileref) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment