PDA

View Full Version : combining a .js into another script?



stcrim
03-16-2004, 05:27 PM
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>

Kor
03-17-2004, 08:24 AM
why? I mean what is your need... It might be better to call the JS ffile from within the new window onload....