Cool Javascript Tricks - Make A Popup Alert Window Appear With Javascript

RegisterLogin
Cool Javascript Tricks - Make A Popup Alert Window Appear With Javascript
Post Description: Cool Javascript Tricks - Make A Popup Alert Window Appear With Javascript
Tags: Cool, Javascript, Tricks, -, Make, A, Popup, Alert, Window, Appear, With, Javascript
This Post Was Posted On Feb 29, 2008 By web hosting #1405
with javascript you can make some pretty cool tricks to you visitors. one way to get your visitor's attention is by making a popup or alert window appear on the user's computer. Most often these popup windows are used to prompt the user, in most cases to tell the user there was some error. a common place to use alert popups is on web forms.

so to make this easier to learn for you, i will make an an example code page so you can see it in action. the first thing to do is to open a text editor, then copy and paste the following code:


     Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>making a javascript alert popup windows</title>
</head>

<body>

<br />
<script language="JavaScript"><!--
alert('Hello Friend, Find Hosting At Webune.com n Click OK To Continue');
//--></script>
<p align="center">&nbsp;</p>
<div align="center">
Copyright &copy; 2007 Wallpaperama - All Rights Reserved<br />
Hosting Provided by <a href="http://www.webune.com">Webune.com</a>
</div>
</body>
</html>


Now paste the code into your notepad and save the file as javascript-alert.html and upload to your website. once you have uploaded to your website, open it and see it in action.

If you don't have a website, our friends at www.webune.com can provide you with a website. They have provided us with web space to show you how this script work so you can see it in action:

If you need web hosting for your site, remember to visit www.webune.com for all your web and domain hosting needs.
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
Isiah
#1836 1
thanks for this howto i helped alot
Mar 14, 2008 Reply Report abuse
Isiah
#1835 2
there were lots of tutorial, but i like this one
Mar 14, 2008 Reply Report abuse
Isiah
#1834 3
thanks for the tips
Mar 14, 2008 Reply Report abuse
Isiah
#1833 4
can you show me where i need to put the code
Mar 14, 2008 Reply Report abuse
Isiah
#1832 5
are there any other ways of doing this in php
Mar 14, 2008 Reply Report abuse
Isiah
#1831 6
i took in college about javascripts and learned nothing
Mar 14, 2008 Reply Report abuse
Isiah
#1830 7
there are great things which help us do this online
Mar 14, 2008 Reply Report abuse
Isiah
#1829 8
i will have to learn and implement this on my website
Mar 14, 2008 Reply Report abuse
Leave Your Comments...
©2012 Webune Forums - Sat Dec 15, 2012 10:16 pm
Powered by: Webune Forums V3