write javascript in html code code example
Example 1: how to enter javascript in html
<script type="text/javascript">
alert("This alert box was called with the onload event");
</script>
Example 2: call js script in html
<script src="file1.js" type="text/javascript"></script>
<script src="file2.js" type="text/javascript"></script>