Click to See Complete Forum and Search --> : Calling a script from within a script


FlyByProgrammer
08-11-2003, 12:11 PM
I was wondering if it is possible to call a script from within a javascript page so that the script that is called loads where you want it. Currently when I call a script from within a javascript page it just loads at the bottom of the page. Here's the code that I call from an html page.


document.write("<script src='http://www.fasterskier.com/xml/headlines.php'target='_blank' type='text/javascript'></script>")


Can anyone help?

pyro
08-11-2003, 12:39 PM
Try this:

document.write("<scr+""+ipt src='http://www.fasterskier.com/xml/headlines.php'target='_blank' type='text/javascript'></scr+""+ipt>");