I\'ve got a form, with 2 buttons
Cancel changes Submit<
Without setting the type attribute, you could also return false from your OnClick handler, and declare the onclick attribute as onclick="return onBtnClick(event)".
type
false
OnClick
onclick
onclick="return onBtnClick(event)"