Body onload event : Body « HTML « JavaScript DHTML






Body onload event

  

<html>
<head>
<title>A Simple Page</title>
<script language="JavaScript">
function yourMessage()
{
    alert("Your first function!");
}
</script>
</head>
<body onLoad="yourMessage()">
</body>
</html>

   
    
  








Related examples in the same category

1.Body on click event
2.Body on stop event
3.Running a Script from the body onload Event Handler