What’s standard behavior when element is clicked? Will it submit the form?

If the button is within a form, the default behavior is submit.

If the button is not within a form, it will do nothing.

BUT BE AWARE!

Always specify the type attribute for
the button. The default type for
Internet Explorer is “button”, while
in other browsers (and in the W3C
specification) it is “submit”.

Taken from http://www.w3schools.com/tags/tag_button.asp

Leave a Comment