All pastes #807695 Raw Edit

adam

public text v1 · immutable
·published 2007-12-06 22:46 UTC
rendered paste body
function appendScriptTag(win, src) {
    var script = win.document.createElement('script');
    script.type = 'text/javascript';
    var head = win.document.getElementsByTagName("head")[0] ||
      win.document.documentElement;
      script.src = src;

    head.appendChild(script);
    head.removeChild(script);
    return true;
  }