js html .on 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: how to use script tag
<script>
document.getElementById("id").innerText = ("");
</script>