MK84
08-20-2002, 11:55 AM
How do I call up another .js from within a .js file? Let's say I have test.js and test2.js. I want to access some variables and functions from test2.js.
|
||||
Calling up an external .js file from within a .js file.MK84 08-20-2002, 11:55 AM How do I call up another .js from within a .js file? Let's say I have test.js and test2.js. I want to access some variables and functions from test2.js. x_goose_x 08-20-2002, 02:39 PM Try: document.write('<scr'+'ipt src="test2.js"></scr'+'ipt>'); beetle 08-20-2002, 06:13 PM The easiest way is just include test2.js in the HTML source BEFORE test.js <script src="test2.js"></script> <script src="test.js"></script> MK84 08-22-2002, 01:35 AM Thanx...will try em out. |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum