Make your own free website on Tripod.com
 

 

 

 

 



Site Map:

Home
About Me
Links
Graphics
Photoshop Tutorials
Java-Script Tutorials
HTML Tutorials
Contact Me

 

 

Your First Script

You know that box that came up when you opened the page? That's what we are going to make, it is very easy to do.

An Alert Box

Here is the code.

<script language="JavaScript"> alert("This is an Alert Box") </script>

Result: What came up at the start of the page.  Click here if you missed it.

Since this is probably your first time seeing this I will go through each part.   The first line tells the browser that the following code is Java-Script.  Then comes the alert box.  In the quotation marks you put what you want the alert box to say.  But if you where using a variable you would take out the quotation marks, but we will get into that later.  Then just like making a hyperlink in HTML, you have to end it with a /.  Only you put script, because its the end of the JavaScript.

Back | Next

Originally made on 10.26.02
Formally InLiner's Graphics and Tutorials