Mass Media For The Individual
Katy Whitton Web Development Logo
 
 
Tutorials - JavaScript - Lesson 4 - The Alert Command

The alert command puts up a small box on the screen that can let users know information, or simply annoy them!

Click here to see an example of an alert box

To produced an alert box, you can use the following code:

<a href="#" onClick="alert('You clicked on the link!')">Click here to see an example of an alert box</a>

The above code produces the alert when the user clicks on the link, you can also use the alert command in conjunction with the onLoad and prompt commands amongst others.

Tutorial 5 is about the prompt command.

back
 
Tutorials

Customer Log-In
If you have purchased our software, enter your email address and password below to download it.