{{{{ 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

Simple ifpage info
if ... elsepage info
Multiple elsepage info
Compound ifpage info

Simple looppage info
Double looppage info
Conditional looppage info
Example - mosaicpage info
Simple Pictures
Mouse clickpage info
Change picturepage info
Mouse pointpage info
Example - horsepage info
Example - gallerypage info
Gallery 2 (links)page  

Advanced Pictures
Canvas - Draw linespage info
Canvas - Connect linespage info
Canvas - Draw shapes with clickpage info
Canvas - Circles and rectanglespage info
Canvas - Click and dragpage info
Canvas - Touch/click and dragpage info
Canvas - Touch and dragpage info
Mappage info
Overlay picturespage info
Mulitple overlayspage 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
Writing HTMLpage info
Dynamic HTMLpage info
Example-questionspage info

Timerpage info
Time interruptpage info
Animationpage info

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

Play notespage 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