Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: open
If you define a variable, function or whatever in file1.js, you can call your function, or reference your variable from code in file2.js
Two things come to mind:
First, the obvious - load two (or more) .js files with the document and code from one file can reference code in the other file.
But both files must be linked to the document.
This can be done with any sophisticated server-side scripting engine. PHP for sure.
includefile = 'somefile determined dynamically';
nasty - I've used this on IE 5.5 only - not sure if it will work on other browsers.