Answers for "javascript load code from url"

2

javascript dynamicly include another js file

var script = document.createElement('script');
script.src = "https://www.examplesite/myscript.js";
document.head.appendChild(script);
Posted by: Guest on December-09-2020
2

include other js files in a js file

document.writeln("<script type='text/javascript' src='Script1.js'></script>");
document.writeln("<script type='text/javascript' src='Script2.js'></script>");
Posted by: Guest on March-16-2020
0

how to call a script from another script in javascript

<script type="text/javascript" src="file1.js"></script>
<script type="text/javascript" src="file2.js"></script>
<script type="text/javascript">
    alertOne( );
</script>
Posted by: Guest on July-22-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language