Instead of "document.ViewerInfo.submit();" do a function call: "javascript: validateFrm();", in that function either "return false" or "document.ViewerInfo.submit();"
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruce Sorge Sent: Sunday, June 29, 2003 6:47 PM To: DFW CFUG List Subject: OT: JS Question Say, I have this enter image that looks like this: <a href="javascript:document.ViewerInfo.submit();"><img src="images/EnterButton.gif" border="0"> What I want to do is to also be able to call my form validation JavaScript when the user submits the form. I tried using an onSubmit routine in the Form tag, but that is not working. Any thoughs on this? Thanks, Bruce ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To unsubscribe: Send UNSUBSCRIBE to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To unsubscribe: Send UNSUBSCRIBE to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org
