Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Long name JavaScript Muddle
Message
 
To
17/04/2001 13:22:25
Mike Mattos
Nationwide Computers
Mississauga, Ontario, Canada
General information
Forum:
Internet
Category:
FrontPage
Miscellaneous
Thread ID:
00494894
Message ID:
00496256
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform