{{{{ JavaScript Examples }}}}

To look at the scripts, click on 'page' for the example you require, then when the page loads, click on View, then Source.

Simple Input and Output
Button and Alertpage info
Textboxpage info
Textareapage info
Text and Buttonpage info
Selectpage info
Select with valuepage info
Radio buttonspage info

Conditions
Simple ifpage info
if ... elsepage info
Multiple elsepage info
Compound ifpage info
Pictures
Mouse clickpage info
Change picturepage info
Mouse pointpage info
Example - horsepage info
Example - gallerypage info
Gallery 2 (links)page  

Loops
Simple looppage info
Double looppage info
Conditional looppage info
Example - mosaicpage info
Functions and Variables
Functionpage info
When code is actionedpage info
Variablepage info
Global variablespage info
Parameterpage info
Random numberspage info

Numbers and Strings
Data typespage info
Numberspage info
Reverse stringpage info
Sub-stringspage info
Sum to a single digitpage info
Round to 2 decimal placespage info
Pig Latinpage info
Convert to lower casepage info
HTML
Writing HTMLpage info
Dynamic HTMLpage info
Example-questionspage info

Time
Timerpage info
Time interruptpage info
Animationpage info

Arrays
Single arraypage info
Example - Sortpage info
Double arraypage info
Example - Draughtspage info

Debug page for curly brackets


Return to JavaScript index

Valid HTML 4.01! All the HTML has been validated using W3C HTNL Validator. This means that they have some stuff at the beginning telling the validator various information. The HTML will work without this (but it won't conform to W3C recommendations).

© Jo Edkins 2005