<script type="text/javascript" src="path-to-javascript-file.js"></script> code example
Example: how to enter javascript in html
<script type="text/javascript">
alert("This alert box was called with the onload event");
</script>
<script type="text/javascript">
alert("This alert box was called with the onload event");
</script>