Practical PC
Stripe

Reviews
Web Building Guides
Computing Guides
Opinion
Downloads
About Practical PC


 

 
Sections
Getting Started
For the absolute novice.
 
Web Building software
The tools of the trade.
 
Design Tips
How to make your Web site look great
 
Web Building scripts
Things that make your Web site dazzle.

 

Web Bulding Guides
 PPC> Web building> Scripts  

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).

^top
 

ppc


 
counter