Answers for "adding javascript to 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 include external javascript in html

<script src="script.js">
Posted by: Guest on September-18-2020
0

how to enter javascript in html

<script type="text/javascript">
  alert("This alert box was called with the onload event");
</script>
Posted by: Guest on August-19-2020

Browse Popular Code Answers by Language