Simple Program to display alert onload event of page or browser.
Syntax for Simple program to display alert onload event of page or browser in Javascript
<html>
<head>
<title> Display Alert </title>
<script language = "JavaScript">
<!--
function displayAlert()
{
alert("This is syntax-example.com site.");
}
//-->
</script>
</head>
<body onload = "displayAlert()"> </body>
</html>
Example for Simple program to display alert onload event of page or browser in Javascript
Display Alert