Sponsored By
MindStick SurveyManager
Advertise with Us
Advertisement
Advertise with Us
Follow Us
Follow _MindStick_ on Twitter View MindStick Software's LinkedIn profile View MindStick Software's Facebook profile
Mindstick
Article Article  Forum Forum  Blog Blog  Quiz Quiz  Beginner Beginner  Careers Careers  Contact Contact  Login Login  
Home | Product | Services | About Us | Interview | DeveloperSection | Submit an Article | Submit Blog
Report Abuse Form
Reason:    
   

Home >> Scripting >> Java Script >> Display alert on window load in Javascript
Author Post

Chris S


Total Post: 16
Member Since: 9/29/2010
Points: 93
Display alert on window load in Javascript
Posted On: 2/28/2011 2:22:01 AM
Hi,

I want to display alert message on client side as soon as window loads.
Please help, its urgent.

Waiting for working solution.
Author Post

Haider M Rizvi


Total Post: 40
Member Since: 6/6/2010
Points: 291
Re: Display alert on window load in Javascript
Posted On: 2/28/2011 2:28:54 AM
Hi Chris,

You can display alert box on window load event.

window.onload = function () {

       alert('Welcome!');

}

Author Post

Amit Singh


Total Post: 104
Member Since: 8/8/2010
Points: 702
Re: Display alert on window load in Javascript
Posted On: 10/11/2011 9:11:46 PM
hi all,

another way to call the function on body load,
for example
<html>
<head>
<script>
function show()
    {
    alert("show alert");
    }
    </script>
</head>
<body onload="show()">
</body>
</html>
Report Abuse Form
Reason:    
 
Total Online Users: 6823
Advertisement
MindStick DataConverter
Advertise with Us
  
Copyright © 2009 - 2013MindStick. All Rights Reserved.