Advanced MouseOver Alert Box

Script by Dennis Wildbore

Place Your Mouse Here for a Personalized Greeting

Isn't that great? It's a simple, one-line script that does it. Here's the script:

<a href="" onMouseover="var name = prompt('Please enter your name','name');
alert('hello '+name+' !')">Place Your Mouse Here for a Personalized Greeting</a>

     Get the above script all on one line...

     You can change what appears on the page by changing out where I have written "Place Your Mouse Here...". Each time a mouse hits it, the prompt box comes up and a message is created. If the person chooses not to enter anything or chooses "Cancel," the alert box says "Hello, Null." Strange, but that's what it says.

Back to the Alert Scripts