Answers for "make script tag and add script in html using js"

2

javascript create script tag

var script = document.createElement("script");
script.src = "https://url.com/";
document.head.appendChild(script);
Posted by: Guest on May-15-2020
0

how to add js to html

<body>
  <script type="module" src="script.js"></script>
</body>
Posted by: Guest on May-06-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language