a little question about on the sequence of actions done by a servlet
hi thanks for reading.
I just would like to know what executes when you have an html button inside a form.?
and this is how my button is written
this piece of button is inside a form. and the container form has an action point to a servlet. now my question is, because there is an onclick action too here. what triggers first?
<input type = "submit" onClick="jScriptMethod()" value="Edit">
when I click a button, does it do the onclick method first? or does it submit the form data straight to the servlet? thanks!
all answers would be appreciated, thank you :D