5
What is the difference between the following components ?
<button type="button">Click Me!</button>
<asp:button ID="cmdAvancar" runat="server" >Click Me!</asp:button>
<input type="submit" value="Submit">
I say for example in properties, matter of events, manipulation, effects while clicking.
For example if I need to use Javascript onsubmit event all 3 will work?
right, but in the case of
onsubmit
being an eventJS
it works on the 3 components?– Jhonatan Jorge de Lima
According to the documentation (https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onsubmit), yes - as long as you do not call the form function directly (
form.submit();
);– OnoSendai