Answers for "HOW TO ADD AN EXTERNAL 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
1

how to write code in external javascript file

function myFunction() {

  document.getElementById("demo").innerHTML = "Paragraph changed.";

}
Posted by: Guest on May-25-2021

Code answers related to "HOW TO ADD AN EXTERNAL JS SCRIPT"

Browse Popular Code Answers by Language