Created
April 7, 2013 23:43
-
-
Save xerxesb/5333129 to your computer and use it in GitHub Desktop.
Include javascript dynamically
This file contains 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
/* Modified from http://www.javascriptkit.com/javatutors/loadjavascriptcss.shtml */ | |
var url= ""; | |
var fileref = document.createElement('script'); | |
fileref.setAttribute("type","text/javascript"); | |
fileref.setAttribute("src", url); | |
document.getElementsByTagName("head")[0].appendChild(fileref); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment