A few examples of generic JavaScript functions

View the source, have some fun - or get a life!

Quick 'CheckAllFields()' onSubmit.

All fields in the form are checked that some input has been made - no special data needs catered for.
All this is done in a single loop - can be called on any form.
The_Date ('dd/mm/yyyy')

The_Box_10 (10 chars max)

Detailed 'ValidateForm()' onSubmit.

Each field catered for separately.
More meaningful error messages - but is individual to the form.
The_Date ('dd/mm/yyyy')

The_Box_10 (10 chars max)

Get selected colour
Using an options[xxx.selectedIndex]

Multiple ACTIONs from single form

via submit_form(this.form, target) function.

Submit OnChange selection.

Select from list - no need to press any buttons!

Let's see a little
 


And now a small Java applet...

Your browser is completely ignoring the <APPLET> tag!

And finally, let's take a look at your
 

©T.Lawford