Logo 
Search:

Javascript Articles

Submit Article
Home » Articles » Javascript » EventsRSS Feeds

Simple program to display alert onload event of page or browser

Posted By: Harvey Evans     Category: Javascript     Views: 8283

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
  
Share: 



Harvey Evans
Harvey Evans author of Simple program to display alert onload event of page or browser is from London, United Kingdom.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!