xxxxxxxxxx
<script type="text/javascript">
alert("This alert box was called with the onload event");
</script>
xxxxxxxxxx
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Embedding JavaScript to the Head Section</title>
</head>
<body>
</body>
</html>