Calling HTML Events with JavaScript

The following example will demonstrate the event calling in HTML with Java Script

<html>
<head>
<title>HTML Events</title>
<script>
function load()
{
alert("Hello");
}
</script>
</style>
</head>
<!-- calling event on load of document body -->
<body onLoad="load()">
</body>
</html>