Created
September 14, 2013 12:23
-
-
Save navneetkumar/6561606 to your computer and use it in GitHub Desktop.
Load javascript dynamically
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 loadFile(url) { | |
var script = document.createElement('SCRIPT'); | |
script.src = url | |
document.getElementsByTagName('HEAD')[0].appendChild(script); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment