The alert() function
|
|
Now to learn the most simple yet entertaining command:
|
|
The alert() function
|
|
You've seen this function in action when you came to this page. Now, let's learn how to make it:
|
|
In between the <script language="JavaScript"> and the </script> tags type alert('Hello World!');
|
Go ahead! Try it!
|
You can use the alert() function to find and fix problems in your code.
|
You can also annoy a lot of people with
this function!:)
|
Like every thing this code can be used for evil, and can really P**S people off. Needless to say, I'm not going to teach you how.
|
|
In the third chapter you get to practice variables!!!YAY!
|
|