I am afraid this is a OT. Please consult with good Javascript documentation available online from Netscape and Microsoft Websites.
You can write a javascript function, say 'checkThis' which would accept a parameter that corresponds to your text object and associate that with the onBlur event <INPUT TYPE="text" NAME="blah" onBlur="checkThis(this);">. And then you can also write an entire validate routine in Javascript, say 'validateForm' and associate that with onSubmit event. Pass the form object itself, by invoking the function as <FORM name....... onSubmit="return validateForm(this);"> Bhanu Prakash wrote: >HI All, > Is there a way to Validate the fields of a >form? Say I have a >text field, and I should show an error to the user if >he does not enter >anything while submitting the form? >Thanks for the help >Bhanu. > > > >===== >Bhanu Prakash G V S > >__________________________________________________ >Do You Yahoo!? >Yahoo! Sports - Coverage of the 2002 Olympic Games >http://sports.yahoo.com > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
