Chapter 7: Form Handling

Return to Chapter 7

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Checking Fields against Each Other

See it run: Checking Fields against Each Other

Script 7.8

This JavaScript compares the value of one field to another, and figures out if they match.