Answers for "add an external javascript file to an html file"

59

include script in html

<script type="text/javascript" src="/path/to/script.js"></script>
Posted by: Guest on July-17-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 "add an external javascript file to an html file"

Browse Popular Code Answers by Language