Metachecker.net
|
TrafficChecker.net
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Password Verifier
Keep your visitors from submitting their form until their "password" and "re-enter password" fields match, for verification purposes. They get an error message telling them to re-enter the passwords if they do not match.
Password:
Re-enter:
Insert into <HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- Original: Carey Walker (carey.walker@citicorp.com) --> <!-- Begin function checkPw(form) { pw1 = form.pw1.value; pw2 = form.pw2.value; if (pw1 != pw2) { alert ("\nYou did not enter the same new password twice. Please re-enter your password.") return false; } else return true; } // End --> </script>
Insert into <BODY>
<form onSubmit="return checkPw(this)"> <center> <table border=0> <tr> <td>Password:</td><td><input type=text name=pw1 size=10></td> </tr> <tr> <td>Re-enter:</td><td><input type=text name=pw2 size=10></td> </tr> <tr> <td colspan=2 align=center><input type=submit value="Submit!"></td> </tr> </table> </form>
Other Options