link javascript file with html file and link the functions code example
Example: script src tag in html
<script type="text/javascript"
src="file.js">
</script>
<script type="text/javascript"
src="file.js">
</script>