alert boxes
There are a few different kinds of alert, or pop-up, message boxes. Here we'll go over the code for each of them, so you have a few different choices if you want to add them to your site. Keep in mind, though, that while alert boxes can come in handy, they can also be a great annoyance. Unless you aim to drive visitors away, keep your use of alert boxes to a minimum.Basic
This is the basic, frequently used alert box. It pops up right when the page opens, before it loads. In your header tags (<*HEAD> without the *) tags, place this script:Adding Multiple Boxes
If you want to have more than one alert box, then simple copy and paste the "alert('Your text here!');" portion of the code for each box.
ON PAGE LOAD
This is an alert box that appears after the page is fully loaded. In order to add it to your site, paste this code in your body tag:And example of what it should look like is this (without the *):
<*BODY onLoad="window.alert('This box is displayed every time this page is loaded!');">
LINKS
Alert boxes can also be applied to links. You can do this in two different ways. One way is for the box to pop-up when someone clicks on this link. To do that, post your link in this format:You may also have a link that shows the pop-up when someone simply hovers over it, without even clicking.
Example: Million Dollar Sweepstakes!
Have fun making annoying pop-ups. Remember, moderation is a virtue. ;]