irt.org Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt

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

You are here: irt.org | FAQ | JavaScript | Form | 5 | Q164 [ previous next ]

This should work:

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

©2013 Martin Webb

ArticlesFAQsGamesFeedback

FOLDOCRFCsInstant JavaScriptSoftwareBooksJavaScript Programmer's ReferenceAboutTop