/ Published in: JavaScript
addjs("monkey"); will load "monkey.js" file in the same directory.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var d=document; function gebt(s){return d.getElementsByTagName(s)} function addjs(s){ var e=d.createElement("script"); e.src=s+".js"; e.s=s; e.type="text/javascript"; gebt("head")[0].appendChild(e); }