Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Long name JavaScript Muddle
Message
 
À
17/04/2001 13:22:25
Mike Mattos
Nationwide Computers
Mississauga, Ontario, Canada
Information générale
Forum:
Internet
Catégorie:
FrontPage
Divers
Thread ID:
00494894
Message ID:
00496256
Vues:
19
What John means is this:

In your form use
FORM ... onsubmit="return Validator(this)"
then in your form validation javascript use this:
function Validator(theForm)
{
  if (theForm.usr_first.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.usr_first.focus();
    return (false);
...
...
Nowhere is the name of the form being referenced, so it doesn't matter what the name of the form is.

-Dave
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform