Answers for "run js on html tag"

16

hello world javascript

// Output Hello World! in the console.
console.log("Hello World!");
Posted by: Guest on February-24-2020
10

linking a script .js

<script type="text/javascript" src="path-to-javascript-file.js"></script>
Posted by: Guest on March-08-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