Created
May 7, 2017 11:37
-
-
Save UlisesGascon/dd7b24c53978b997f8c7ecafd3e2f3ca to your computer and use it in GitHub Desktop.
inyectar un script
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
var head = document.getElementsByTagName('head')[0]; | |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.onload = function() { | |
callFunctionFromScript(); | |
} | |
script.src = 'path/to/your-script.js'; | |
head.appendChild(script); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment