How do you load one JavaScript file from another JavaScript file, like CSS? In CSS we use write @import url(\"mycss.css\");.
@import url(\"mycss.css\");
Is there any way to do it i
Yes. If you want in pure JavaScript, you have to create dynamically a script tag, and append it to the document.
script
Yes. If you use the jQuery library, you can use the $.getScript method.
$.getScript
$.getScript("another_script.js");