There are different situations when you may want to use an external javascript file. One idea may be to reference a single script from different web pages. Another idea may to be to conform closer to the W3C standards. Perhaps the reason is “just because”.
Having an external JavaScript page is similar to having an external [...]

Timeouts are like a timer. It can allow you to execute a section of code after a specified amount of time has passed. If you have viewed this page for 30 seconds, you have probably noticed a working example of this. Here is the code used :
//
<script type=”text/javascript”>
<!–
setTimeout(“alert(‘Thirty seconds has passed.’);“,30000);
// –>
</script>
Notice that the [...]

If JavaScript is the only type of “script” language you are using on the page, you can specify a BASE setting and not have to include the TYPE for each SCRIPT. This is commonly done when there are many areas of script within the page code.
The BASE setting is created using a META tag. These [...]

The GET command is used to retrieve a part of the current date or time. The information is constructed from the visitor’s computer settings.
The different types of GET are :

getFullYear( )
getMonth( )
getDate( )
getDay( )
getHours( )
getMinutes( )
getSeconds( )
The year
The month
The day of the month
The day of the week
The hour
The minutes
The seconds
4 digits
0 to 11
1 to 31
1 [...]

Control structures are simply the deciding factors for what sets of codes are going to be used and how they are going to be used. These structures consist of :

IF ELSE
WHILE
FOR

These three control structures are very similar. Each of the three control structures has its own specific format and its own special [...]

Arrays are used to organize a set of variables.
Here is an example of a regular script defining 10 names using variables.

<script type=”text/javascript”>
<!–
var a=”Joe”;
var b=”Peter”;
var c=”Mary”;
var d=”Chris”;
var e=”Dave”;
var f=”Sally”;
var g=”Pat”;
var h=”John”;
var i=”Larry”;
var j=”Andrew”;
// –>
</script>

This can become a very hard task when you have to remember which variable is holding which name. Not to mention you will [...]

FUNCTIONS are small groups of instructions that are carried out when they are called upon. They are usually placed in the HEAD area of the page code. If you have a page that will be doing the same task many times, it’s best to use a function to organize them.
A very basic example of how [...]

Before getting into the actual JavaScripting parts, here are a few other bits of information that will help you along the way.

alert
Generates a pop-up ALERT box. This provides information and visitor clicks on OK to continue.

confirm
Generates a pop-up CONFIRM box. This gives the visitor an OK or CANCEL choice.

document
Refers to the current document or page [...]

Events are the reactions to a visitors actions. The most commonly used are the onMouseOver and onMouseOut events. These are used for creating image changes when the visitor points the mouse over them. Here are all the other EVENTS and what they react to :
onAbort
onBlur
onChange
onClick
onError
onFocus
onLoad
onMouseOver
onMouseOut
onSelect
onSubmit
onUnload
Visitor aborts current page loading.
Object visitor just came from.
A change in [...]

Many JavaScripts deal with variables. This is where you take a word or letter and assign a value to it. The value can be either numbers or words. To think of it in physical terms, imagine a box with a label stuck on it and there is a piece of paper with a name or [...]

7 visitors online now
7 guests, 0 members
Max visitors today: 7 at 04:07 am GMT-3
This month: 31 at 03-10-2010 01:25 pm GMT-3
This year: 32 at 01-23-2010 07:03 pm GMT-3
All time: 63 at 11-14-2009 05:10 pm GMT-3