Can we include an external .js file inside another external js file? What do I mean? Lets say I have a file called test.html and I include the following code there: Now, can I include or enter my other .js files into mainScript.js file instead of listing them on test.html?
Yup, just in mainScript.js put the code... document.write("<script src='moreStuff.js' type='text/javascript'></script>"); Code (markup):