Sponsored By
Advertise with Us
Advertisement
Advertise with Us
Follow Us
Article
Forum
Blog
Quiz
Beginner
Careers
Contact
Login
Email Id
Password
Remember Me
Forgot Password?
Sign Up
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
Report Abuse
Hi,
I want to display alert message on client side as soon as window loads.
Please help, its urgent.
Waiting for working solution.
Reply
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
Report Abuse
Hi Chris,
You can display alert box on window load event.
window.onload =
function
() {
alert(
'Welcome!'
);
}
Reply
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
Report Abuse
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>
Reply
Report Abuse Form
Reason:
Total Online Users:
6823
Advertisement
Advertise with Us
Copyright ©
2009 - 2013
MindStick. All Rights Reserved.
Home
|
Contact Us
|
Services
|
Feedback
|
Advertisement
|
Privacy Policy
|
Term & Conditions
|
About Us