var node=document.createElement("script"); node.setAttribute('src','http://common.cnblogs.com/script/jquery.js'); node.setAttribute('type','text/javascript'); document.getElementsByTagName('head')[0].appendChild(node);