Forum Moderators: open

Message Too Old, No Replies

adding a .js call into another script

is there away

         

stcrim

5:22 pm on Mar 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there a way to add a .js call into another script?

Let's say this is the .js and below it is the script is there a way to combine them where the script is read and then the .js file is called?

<script SRC="http://www.mysite.com/1stc/myfolder/code.js"></script>

<script>
{myWin = open('', 'winin','top=10,left=10,toolbar=0,menubar=0,scrollbars=1,status=0,resizable=1,width=650,height=460');
myWin.blur();
myWin.location = 'http://www.mysite.com/window/2nd/myfolder/index.html';}
</script>

jonathanleger

5:56 pm on Mar 16, 2004 (gmt 0)

10+ Year Member



I'm not totally sure this is what you're asking for, but here's some script to load an external .js file on the fly:

<script language=javascript>
document.write('<scri'+'pt src="newscript.js"></'+'script>');
</script>

stcrim

7:31 pm on Mar 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes that was exactly what I am looking for...

Thank you
-s-

jonathanleger

9:16 pm on Mar 16, 2004 (gmt 0)

10+ Year Member



You're very welcome. :)