<title>Simple Alert Box</title>
<!-- START ALERT BOX SCRIPT -->
<!-- This part of the script goes between your HEAD tags. -->
<!-- Hide the script from old browsers --
function loadalert ()
<!-- This is where you write your message. Just change the text between the double quotes. -->
// --End Hiding Here -->
<!-- This part of the script goes INSIDE your FIRST BODY TAG -->
<!-- END ALERT BOX SCRIPT -->
Simple-simon stuff, huh? Bet you never thought it could be so easy...
Now let's take it one step further. Let's have a conversation with the new visitor and then write his name in a personalized message write on the web page he's visiting.
In the <head>
var name = prompt('What is your name, please?', 'Web Designer');
var today = new Date();
var hrs = today.getHours();
if (hrs < 5)
alert('Good Morning, '+name+', it sure is early !');
else if (hrs < 12)
alert('Good Morning, '+name+' ');
else if (hrs <= 18)
alert('Good Afternoon, '+name+' ');
else if (hrs < 24)
alert('Good Evening, '+name+' ');
And in the <body>
document.write("<CENTER><H3>Hello, " + name + " ! Have you ever tried to install a cool script into your web page? <\/H3><\/CENTER>");
Click on link to see how alertbox works
It is so pleasant to work with experts. Click here to find out more regarding web design london.
java script alert box
js alert box
It is so pleasant to work with experts. click here to find out more regarding sell ads.