Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q164 How do you make make form submission conditional on returning true from more than one function?

irt.org | Knowledge Base | JavaScript | Form 5 | Q164 [ previous next ]

Q164 How do you make make form submission conditional on returning true from more than one function?

This should work:

<FORM ACTION="/cgi-bin/whatever.cgi" METHOD="post" onSubmit="return (functionName1() && functionName2())>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.