'onLoad' Example : onLoad « Event onMethod « JavaScript DHTML






'onLoad' Example

 
    
<html>
<body onLoad="alert('The document is loaded')">
<img src="http://www.java2s.com/style/logo.png">
</body>
</html>

    
      
        
  








Related examples in the same category

1.onUnload event for body tag