Prevent standard handling of form if button type is submit.