Created
January 6, 2018 10:36
-
-
Save shmdhussain/d9c89b84b6cd6f796818f9d177668fae to your computer and use it in GitHub Desktop.
Add Script Tag to body
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
/*START: Create Script Tag and append in last line of body*/ | |
function addScript( src ) { | |
var s = document.createElement( 'script' ); | |
s.setAttribute( 'src', src ); | |
document.body.appendChild( s ); | |
} | |
/*END: Create Script Tag and append in last line of body*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment