Skip to content

Instantly share code, notes, and snippets.

@jeffery
Created July 18, 2013 10:24
Show Gist options
  • Save jeffery/6028295 to your computer and use it in GitHub Desktop.
Save jeffery/6028295 to your computer and use it in GitHub Desktop.
add_dom_css
function add_dom_css(script_file)
{
script = document.createElement('link');
script.type = 'text/css';
script.rel = 'stylesheet';
script.href = script_file;
document.getElementsByTagName('head')[0].appendChild(script);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment