Running a Script from the body onload Event Handler : Body « HTML « JavaScript DHTML






Running a Script from the body onload Event Handler

  

<html> 
<head> 
<title>An onload script</title> 
<script type="text/javascript"> 
function done() { 
    alert("The page has finished loading."); 
} 
</script> 
</head> 
<body onload="done()"> 
Here is some body text. 
</body> 
</html> 

   
    
  








Related examples in the same category

1.Body onload event
2.Body on click event
3.Body on stop event