Answers for "how to include a js script inside a js script"

10

linking a script .js

<script type="text/javascript" src="path-to-javascript-file.js"></script>
Posted by: Guest on March-08-2020
2

include js to js

var imported = document.createElement('script');
imported.src = '/path/to/imported/script';
document.head.appendChild(imported);
Posted by: Guest on July-15-2021

Code answers related to "how to include a js script inside a js script"

Browse Popular Code Answers by Language