Re: Two functions in onclick event of a button

Tech-Archive recommends: Fix windows errors by optimizing your registry



kiran wrote:
now, I need some code which I can use in validate() function that will stop the execution of any other function or code after validate() function that's there for this save button onclick.

Something like exitAllFurtherCodeExecutionForThisEvent()? No, I don't know of any. Only for WSH there is WScript.Quit().

I guess you must restructure your programlogic and maybe in your case it might be a good idea to think about Randy's suggestion in <2OKdnU84dK6_8aXeRVn-sQ@xxxxxxxxxxx>
("It might be wiser to let validate decide whether to call send or not and then call it.")


Daniel
.


Quantcast