Skip to content

post loading javascript

var postscript = document.createElement("script");
postscript.src="/path/to/some.js";
postscript.type="text/javascript";
document.getElementsByTagName("head")[0].appendChild(
postscript);

this loads the some.js and “compiles” it after execution

Categories: javascript.

Tags: , ,

Comment Feed

No Responses (yet)



Some HTML is OK

or, reply to this post via trackback.