To use onLoad in the body tag to call a Javascript:
<body onLoad="alert('The page is loading... now!')">
-We enclose Javascript's built-in event handler onLoad in the body tag.
-We call Javascript's built-in alert method.
-We enclose our text in single quotes because it's already inside double quotes.
We could also call a script with onLoad:
function coolAl() {
alert("The page is loading... now!");
}