hi, I’m trying to write a firefox greasemonkey plugin. Among other functions, I want it to add a <script src=”…” type=”text/javascript”> tag to the head, but I cont seem to figuere out how. Anyone could help me out?
Thx in advance
<i> </i> theScript = document.createElement('script'); theScript.src = 'scriptfile.js'; theScript.type = 'text/javascript'; theHead = document.getElementByTagName('head').item(0); theHead.appendChild(theScript);
Help @klmdb spread the word by sharing this article on Twitter...