I want to include jquery.js in myjs.js file. I wrote the code below for this.
var theNewScript=document.createElement(\"script\"); theNewScript.type=\"te
I used this code before, and it worked:
var t=document; var o=t.createElement('script'); o=t.standardCreateElement('script'); o.setAttribute('type','text/javascript'); o.setAttribute('src','http://www.example.com/js/jquery-1.3.2.js'); t.lastChild.firstChild.appendChild(o);