connect external html pages with js code example
Example 1: how to include external javascript in html
<script src="script.js">
Example 2: how to connect a javascript file to html
<script src="name.js">
//put in your javascript here
</script>
<script src="script.js">
<script src="name.js">
//put in your javascript here
</script>