set http link in script tag javascript code example
Example 1: how to connect a javascript file to html
<script src="name.js">
//put in your javascript here
</script>
Example 2: script tag in html
<script>
// Write JS here
</script>
<script src="link/to/js/file.js"></script>