Webmonkey
Powered by Atomz.com



Quick Reference:

• Javascript Code Library
HTML Cheatsheet
Special Characters
Color Codes
Browser Chart
Stylesheet Guide
Unix Guide
Glossary
Domain Registries

Reference   JavaScript Code Library

IsFormComplete() checks if all elements of a form have a non-blank value. If they do, the function returns 'true', otherwise, it displays an error message, returns 'false', and sets the focus to the blank form element.

Usage: IsFormComplete("theFormName")

Usage notes:
If a given form element is not required, simply set the initial value to a space. This routine should be called from within another javascript routine so that the form may be submitted to the proper CGI upon a return value of TRUE.

Demo (All JavaScript browsers )

License: Webmonkey Public License

Cut, paste, and enjoy!


Feedback  |  Help  |  About Us  |  Contribute  |  Jobs
Advertise  |  Privacy Statement  |  Terms and Conditions

Copyright © 1994-2000 Wired Digital Inc., a Lycos Network site. All rights reserved.