> <form onsubmit="return validate()"> > > will call your function when form is submitted, and return a value, > returning false wills top form submititng.
Yeah, thanks Russ. I was going to use that for the overall form validation. I was hoping to have a really modular, reusable bit of JavaScript to validate individual boxes as well as the total form, simply by adding an onBlur() in each INPUT, but will have to knock that idea on the head for now. Cheers -- Aidan Whitehall <[EMAIL PROTECTED]> Macromedia ColdFusion Developer Fairbanks Environmental Ltd +44 (0)1695 51775 ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
