Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

dynamically add script code to page

var newScript = document.createElement("script");
newScript.src = "http://www.example.com/my-script.js";
target.appendChild(newScript);
Source by www.danielcrabtree.com #
 
PREVIOUS NEXT
Tagged: #dynamically #add #script #code #page
ADD COMMENT
Topic
Name
6+9 =