advert

User Alert

Sometimes you need to alert your visitors to an important fact, and know they've seen it. Here's how

This piece of code is simplicity itself to implement, but can serve a vital function for any Web site. It simply shows an Alert box, within which is the message of your choice, and offers an 'OK' button that your visitor must click to clear the box.

The code is simplicity itself:

<script language="JavaScript">
alert("This alert screen will come up saying whatever you want!");
</script>

That's literally all there is to it - the usual <script> </script> container and the 'alert' tag together with the text you want - very simple, but so very, very effective! Insert it in the <body> section of your page (I prefer to have it right at the end, so that the page has loaded before the alert loads).

 

David Dorn

Keep up to Date with PPC

RSS feed icon

Add to Google

Free Sitemap Generator