Sunday, April 1, 2018

Include a JavaScript file in a JavaScript file





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?


Answer



function includeJS(incFile)
{

document.write('');
}


Then include a second JavaScript file by calling:



includeJS('filename.js');

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...