Subj : Re: How to call a function in a different Script file ? To : netscape.public.mozilla.jseng From : linuxwest Date : Tue Nov 25 2003 05:25 pm I think I know the answer to this call all of your js files in your html document. then just use the function wherever you want. As I recall, once the js file is read. the function can be called without even referecing the the file that created it. I hope i'm right because then I get to look smart. GOPALA KRISHNA PRABHU wrote: > HI Guys... > > Is it possible to Call a function in One script File from a different file ? > How Can I call PrintHello() Function in File1.js??? > > > Example. > > File1.js > ====== > function ArgumentFunction(Tag) > { > i =100; > PrintHello(i); > } > > File2.js > ====== > function PrintHello(i) > { > t = java.lang.System.out; > t.println("Test Function to say Hello !!! " + i); > } > > > > > .