Posted By

inamorix on 09/27/07


Tagged

js


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

francisre
korzhik
wizard04
donesmart


require


 / Published in: JavaScript
 

  1. function require (js) {
  2. var d = document;
  3. var el = d.createElement('script');
  4. var head = d.getElementsByTagName('head')[0];
  5.  
  6. el.src = js;
  7. el.type = 'text/javascript';
  8. head.appendChild(el);
  9. }

Report this snippet  

You need to login to post a comment.