Possible Duplicate:
How to include a JavaScript file in another JavaScript file?
I want to include a JavaScript file in a JavaScript  file. include('filename.js'); is not working
What is the right code?
function includeJS(incFile)
{
   document.write('<script type="text/javascript" src="'+ incFile+ '"></script>');
}
Then include a second JavaScript file by calling:
includeJS('filename.js');
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With