I have a link created by ASP.NET that is used to submit my form -
<a href="javascript:generatedfunction();">Click Me</a>
I desired to be able to trigger an event on submit of the form. However since the form got submitted through javascript, I could not just associate the onSubmit of the form (did not be in function ) but I was able to insert my own generated function that triggers first in the onclick-
<a onclick="myfunction();" href="javascript:generatedfunction();">
And it is working fine now .So I wanted to ask that how/what code should be added that can be able to restrict the form submission.
Bookmarks