Inside a form I have a button. What is the difference between when I submit the form via JavaScript like this
<button onclick=document.forms[0].submit();>
and when I submit it like this
<button type=submit></button>?
The first one works for me with most browsers except webkit-based. The latter works fine as well. No difference in functionality is apparent to me. Is there one?