link javascript files code example
Example 1: linking a script .js
<script type="text/javascript" src="path-to-javascript-file.js"></script>
Example 2: html load js file
<script src="myscripts.js"></script>
<script type="text/javascript" src="path-to-javascript-file.js"></script>
<script src="myscripts.js"></script>