how to use .js file in html code example
Example 1: how to reference a javascript file in html
<script type="text/javascript" src="path/filename.js"></script>
Example 2: html load js file
<script src="myscripts.js"></script>
Example 3: insert js in html
<script src=¨script.js¨></script>