Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2002
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Multiple onSubmit events in a form

    Is something like the following possible?

    <form name="frm" method="post" action="return.asp" onSubmit="return checksubmit()" onSubmit="return false;">

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, normally, two scripting actions on one event would be like this

    <form name="frm" method="post" action="return.asp" onSubmit="return checksubmit(); return false;">

    however, that won't work, because return checksubmit() will indeed return, so the 2nd statement will never run.

    Besides, why do you want to return false like that? Just have checksubmit() return false when needed.
    Last edited by beetle; 04-11-2003 at 08:42 PM.
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •