Return to Snippet

Revision: 25256
at March 24, 2010 15:55 by mracoker


Initial Code
var headID = document.getElementsByTagName("head")[0];         
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.src = 'http://www.somedomain.com/somescript.js';
headID.appendChild(newScript);

Initial URL

                                

Initial Description

                                

Initial Title
Dynamically Insert External JavaScript with JavaScript

Initial Tags
javascript

Initial Language
JavaScript