how to enter javascript in html

JavaScript
<script type="text/javascript">
  alert("This alert box was called with the onload event");
</script>
Source

Also in JavaScript: